0

I want to know whether files that I copied to internal storage will also be updated or sharedpreferences files? They area removed when you uninstall app, but what happens when they are updated through Play Store?!

3 Answers 3

1

Android does not touch your internal storage files nor shared preferences on application update. They are left in the same state that they were when application was terminated prior replacing by updated version

1
  • so i have to update this files in first onCreate of new version?
    – vbevans94
    Nov 24, 2012 at 10:57
0

An update will not remove any files or preferences saved by the app. Unless you intentionally program your update such that it does that.

0
0

The only way to remove sharedpreferences is deleting application data, uninstall or do it programmatically as you can see here:

http://developer.android.com/reference/android/content/SharedPreferences.Editor.html

Look at the methods clear() and remove(String key)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.