I am working on a project where I have an app that unzip a file which contains .doc/.pdf file. I want to extract the zip file and want to get the .doc/.pdf file and set its permission to Readable/ReadWrite.
And now want to open the file with the proper app say for MS-Word or PDF viewer with the permission set for the files. How can I do this ?any hint or idea?
Note : I want to use my app to extract the file and open it using the third party app with the set permission on the file.
As we can set the permission of a file in our application.The only problem is with opening the file in Third party apps. Can I use Inter process communication mechanism in android to achieve this task so that we can have process to process communication between tow apps?
Provide me your suggestions on that.
If you are unzip a file on External Storage then by default it has All Permission (The Permission which your External Storage has).
And if you are extracting within your application storage then its Private to your Application only (No third party application can easily access it). In this case use permission
MODE_WORLD_READABLE.