Created
December 3, 2014 09:30
-
-
Save januprasad/c479a0da51be325dee77 to your computer and use it in GitHub Desktop.
PreferenceManager Save Int
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void onReceive(final Context arg0, Intent arg1) | |
{ | |
PreferenceManager.getDefaultSharedPreference(arg0).edit().putInt(yourInt).apply(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment