4 ms·
Serialise and deserialise any Java object to Shared Preferences in Android
- brad-curran 13y agoIt's pretty simple to use. Saving objects: Animal animal = new Animal("Lassie", "Dog"); DroidPrefs.instance(context).put("key", animal).apply(); Loading objects: Animal animal = DroidPrefs.instance(context).get("key", Animal.class);