Android SharedPreferences Tutorial - Part 1

preview_player
Показать описание
Do you need to save simple data to an Android phone? SharedPreferences offers a good way to store and get String's, Boolean's and more. In this tutorial for Android developers, we'll use Kotlin to access SharedPreferences, and save our first name that even persist across sessions. So even if the user closes and opens the app, it will still be saved. However, if the user goes to Settings and clears storage, the data will not save.
Рекомендации по теме
Комментарии
Автор

another great video. really helpful as it explains the code in simple terms that anyone of any experience level can understand. Excellent.

boeingpete
Автор

i am trying to get sharedprefernces value after apply. but the value is not updated until the app is restart. did i miss something ?

pulbring