In-app Billing Save The Item With Sharedpreferences
I'm writing an application for android and I have difficulties with saving int variable with SharedPreferences when using In-App billing. I'd like to add 50 points to my int variab
Solution 1:
TinyDB -- Android-Shared-Preferences-Turbo
This class simplifies calls to SharedPreferences in a line of code. It can also do more like: saving a list of strings, integers and saving images. All in 1 line of code!
Example usage:
TinyDB tinydb = new TinyDB(context);
tinydb.putInt("clickCount", 2);
tinydb.putFloat("xPoint", 3.6f);
tinydb.putLong("userCount", 39832L);
tinydb.putString("userName", "john");
tinydb.putBoolean("isUserMale", true);
tinydb.putList("MyUsers", mUsersArray);
tinydb.putImagePNG("DropBox/WorkImages", "MeAtlunch.png", lunchBitmap);
//These plus the corresponding get methods are all included
This is just an example of how easy it is to use. There are many more usefull methods included in the class. Enjoy :)
Post a Comment for "In-app Billing Save The Item With Sharedpreferences"