Take the 2-minute tour ×  In an android application, what is the
best method to store primitive data variables (such as a list of
3 integers) on the device so that those integers can be seen and
manipulated by the app, but remain on the device after updating
the app?  also, it would be best if there was a way to tell the
difference between the user updating and uninstalling and delete
the file upon the latter. Any easy way to do this that i'm
unaware of?  Any example code of the actual serializing of a
piece of data would be very helpful.  I'm reading the
documentation, but having trouble finding really clear examples.
share|improve this question Are you aware of the
SharedPreferences? –  user658042 Nov 25 '11 at 21:38 I've been
looking at that, but it doesn't specify in the documentation how
persistent the data is. Will Shared Preferences persist after
updating the app? Internal Storage specifically says that files
are deleted at uninstall. I guess my question is more about
that. –  cody Nov 25 '11 at 22:03