I am using default application preferences to store information related to my app. Basically I want to store information in preferences even if the app get deleted. Is using default preference the best way to accomplish this. Any help appreciated. This is the code I am using
//--Init
int myvar = 12;
//--SAVE Data
SharedPreferences preferences = getPreferences(MODE_PRIVATE);
SharedPreferences.Editor editor = preferences.edit();
editor.putInt("var1", myvar);
editor.commit();
//--READ data
myvar = preferences.getInt("var1", 0);
Thanks