vbevans94
vbevans94

Reputation: 1750

What happens to internal storage and shared preferences when android app is being updated?

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?!

Upvotes: 0

Views: 217

Answers (3)

Marcin Orlowski
Marcin Orlowski

Reputation: 75629

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

Upvotes: 1

chuyitox
chuyitox

Reputation: 543

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)

Upvotes: 0

ixx
ixx

Reputation: 32271

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

Upvotes: 0

Related Questions