I’m saving some user data in the internal storage using the openFileOutput method in Context class.
The problem is that when I update the app all these files are removed. Is there any way to avoid these files to be removed?
Regads.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They are not removed when your app is updated. They will be removed when your app is uninstalled. Perhaps you are uninstalling and reinstalling your app instead of doing an in-place upgrade.