Skip to main content

Posts

Showing posts from January, 2013

Android Shared Preference Tutorial

The sharedPreferernce  provides a general framework that allows you to save and retrieve persistent key-value pairs of primitive data types. You can use sharedPreferences   to save any primitive data: booleans, floats, ints, longs, and strings. This data will persist across user sessions (even if your application is killed). to know more about   Refer   sharedPreference you can download the source code of this project from  google drive  https://drive.google.com/folderview?id=0BySLpWhqmbbdRXZxd0ZveHllcG8&usp=sharing click on the above link ->sign into  your  google account ->add this to your google drive -> open it in google drive and download it. Following is the demo application using SharedPrefence. This application is just used to set and get name.Value that you set will be persistent even if you close the application. the value is saved in a xml file. you can view this file in eclipse . open  DDMS go to ...