I am working on an app which downloads the pdf from the server and stores it. Then I use another application like repligo reader to read the pdf from my app.
I wanted to know that is there any way that the pdf files could be stored in a way that no other application could read the file . The file is read only when it is used from my app.
Is there any way?Please help
(As per my knowledge) I think for this you have to store your downloaded pdf file in application’s internal package,
/data/data/<package_name>files, and you have to read this file through third party pdf readers. For this you have to store this file with permission asMODE_WORLD_READABLEso pdf file is stored in your application’s package and you can read it with third party pdf reader. Also its placed in internal storage so not other application can easily access it (except root device).The code for write files,
EDIT:
To view PDF file I used,