This is a simple example for write data into sharedpreferences and get values from it. You just need to add one class that is "PrefsUtil" from this example and use it.
-
-
PrefsUtil.with(context).write("key", "value");
-
PrefsUtil.with(this).write("testInt",55);
-
-
PrefsUtil.with(context).readInt("key");
-
PrefsUtil.with(this).readInt("testInt");
-
-