Created
January 23, 2020 15:57
-
-
Save Lavanyagaur22/885aa52a443d47f20d36b5a220751bed to your computer and use it in GitHub Desktop.
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
val json = prefs.getString("MyObject", "") | |
//returns the object of MyObject class that was saved earlier | |
val obj = gson.fromJson(json, MyObject::class.java) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment