android - add/delete/modify values in "default.properties" -
How do I add / delete values for "default.properties" for Android?
Any example:
Thank you, Sana.
What I have read with your comment is that you want to check that an application is for the first time Whether or not it's being played
Use Android preference for this:
 Check that some value is shared in   
  shared Reference prefs = PreferenceManager.getDefaultSharedPreferences (this); Int value = prefs.getInt ("Fursten"), -1);   If this is the first time you run what you want:
  if (value == -1) {// do sth SharedPreferences.Editor Editor = Edit Prefs (); Editor. InputInt ("Fursten", 1); Editor.commit (); }   
Comments
Post a Comment