Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Serialise and deserialise any Java object to Shared Preferences in Android.
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);
There are no comments on this comment yet.
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);