I have an application that downloads most of the resources from the internet during run time. Most of those resources are images.
我不想让用户看到这些图像出现在彩虹应用中或任何其他应用中。 这一要求对我至关重要,因为:
- I m tracking which resource was downloaded and which need to be download later.
- All those resources would be meaningless to the user and would irritate him.
- I don t want the user or any other application to delete those images
Note: I m aware to the fact that rooted users can do what ever they want and I don t care that those user will mess up the app.
满足这些要求 我使用内部储存,并按我的期望和需要开展工作。
I do let the user to move my application to the SD card, But:
- what is happening to all the files that I saved in the internal storage and to the DB?
- Are they all moving to the SD card with the application? Do they stay in the internal storage?
I believe that they do stay in the internal storage, but I haven t found any documentation for it.
And after I ll understand the behavior it raise few other questions. The only requirement that I have is that the resources would be downloaded from the internet and that the user won t see them in any other application. I don t really care where those files are being saved, I think that if the user decides to move the application to the SD card it is since he has lack of memory in the internal storage, therefor I should transfer all my resources to the SD card.
- Can i save something on the SD card without those files to be public for all?
- What is the best way to handle this situations?
- What option do I have to handle this situation?
- Can I know if the app is installed on the SD card or on the internal storage?
我感谢大家的所有见解和建议。