What are the PreferenceManager and SharedPreference classes used for in Android?

前端 未结 4 1509
眼角桃花
眼角桃花 2021-01-11 19:40

I\'ve come across two classes being used in a tutorial on splash screens PreferenceManager and SharedPreferences. I didn\'t gain a great deal of knowledge about them from th

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-11 20:39

    As explained Artoo Detoo... Sharedpreferences kinda works like sessions in web development. you can use them to pass values from one activity to another and it stays that way as far as the app is in use except otherwise changed..

    it is also use to user value (either after login or registration of the user). thats how much i can talk about it

提交回复
热议问题