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

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -