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

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -