Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

This blog is part of 1 Tute Sets.

Android Video Tutorials For Beginners to Learn Mobile App Development
prev 1 3 7
  • Android Shared Preferences - Video Tutorial

    • 1
    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 1
    • 1.23k
    Comment on it

    In this Android Video Tutorial, I have explained The Shared Preference.

    You’re going to experience the power of Shared Preference in action and learn:

    • The purpose of a Shared Preference 
    • The components that make up a Shared Preference

    One of the best way to save data in your android app is by making use of SharedPreference.

    In this video, I have explained all the modes that can be used in SharedPreference.

    To save data using SharedPreference we can use the syntax below:-

    Editor editor = sharedpreferences.edit();
    editor.putString("key", "value");
    editor.commit();

     


    on the other hand, to retrieve the data saved in sharedpreference we will be using:-

    getString("key", "default value");


    In this tutorial, I have also shown the working example of shared preference that tell's you exactly how the sharedpreference works

 1 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: