1

I am working on a application which download the file from remote server and store the downloaded file's to local cache directory, its working fine.

After that I want to open that same file using ACTION_VIEW intent with another application (e.g open PDF file with an installed PDF viewer, or show some dialog).

Since the cache directory is private, I can not open the file with another application.

Is there any way to do so? Can we make cache directory public to other applications? Or any other method to achieve this, may be sharing the file with ContentProvider or something like that?

NOTE: I want to store the file in local cache only.

Sufian
  • 6,405
  • 16
  • 66
  • 120
Tushar Purohit
  • 524
  • 7
  • 25
  • Welcome to StackOverflow. Please don't write thanks, hello, etc. I added code ticks to [`ContentProvider`](http://developer.android.com/reference/android/content/ContentProvider.html) because it's a class in Android SDK. – Sufian Sep 09 '15 at 07:09
  • You can start that app's activity from other apps.Or ContentProvider may do that kinds of works. – Andy.Zhao Sep 09 '15 at 08:48

0 Answers0