Posts

Showing posts with the label shared preferences

User Session Management In Android

Image
  Overview:- The session helps you when you need to store client information outside your application, with the goal that when the following client utilizes your application, you can undoubtedly get back his subtleties and perform in a like manner.  This should be possible in numerous ways. Be that as it may, the simplest and most pleasant method of doing this is through Shared Preferences.  Shared Preferences:- Shared Preferences permit you to save and recover information as key, value pairs. To utilize shared preference, you need to call a strategy  getSharedPreferences()  that profits a SharedPreference case highlighting the record that contains the upsides of preferences.  Sharedpreferences = getSharedPreferences(CONFIG_PREF, Context.MODE_PRIVATE);  You can save something in the shared preferences by utilizing the  SharedPreferences.Editor  class. You will call the alter technique for the SharedPreference example and will get it in a proo...