Jomia
Jomia

Reputation: 3404

How to access files which is stored in custom folder of internal storage using external app?

I have a zip file. I am unzipping it to internal storage. When unzipping each file, I am keeping the same folder structure. After unzipping all levels, I want to display the files using appropriate third party apps like adobe reader etc.

I can unzipping and creating files with same folder structure. But the problem is the files could not be displayed through external app, because of permission. I couldn't set WORLD_READABLE PERMISSION, because the files are storing in custom folders. I applied setReadable also. But no hope.

How can I show files, or how to get permission to files?

Any help would be appreciated..

Thanks Jomia

Upvotes: 0

Views: 297

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006664

Use FileProvider to serve up the files from your app's internal storage using a ContentProvider.

Or, put the files on external storage, instead of internal storage.

Upvotes: 1

Related Questions