Last active
November 4, 2015 06:13
-
-
Save ar-android/e5d46c50f0cfe178f7fb to your computer and use it in GitHub Desktop.
save to json local storage
This file contains hidden or 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
| String str = json.toString(); | |
| SharedPreferences sharedPref = getSharedPreferences( "appData", Context.MODE_WORLD_WRITEABLE ); | |
| SharedPreferences.Editor prefEditor = getSharedPreferences( "appData", Context.MODE_WORLD_WRITEABLE ).edit(); | |
| prefEditor.putString( "json", str ); | |
| prefEditor.commit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment