How to use sharedpreference to store the data in android || Android studio tutorial

preview_player
Показать описание
In This Video I explain how to use sharedpreferences to store a data or a variable in Android.

when you store a data in a variable and leaves the activity the data gets destroyed when the activity destroyed, that's why I can I use sharedpreferences to store the data even after the app is closed.

let's take a switch element for an example when you turn on the switch and close your app then if you go to your application again you will see that your switch is turned off and that's we are gonna fixed in this video.

using sharedpreferences you can store a small amount of data like a variable for an example in Android and then later on you can also retrieve that data and that's why I can I do in this video so watch this video till the end.

Example code: it will avaiable in short time

Thank you guys for watching and don,t forget to subscribe

Support us through patreon:-

check out my website:-

Follow us on Facebook page:-

Follow me on Intagram:-

#sharedpreference #Androiddevelopment #AndroidDev #androidstudio
Рекомендации по теме
Комментарии
Автор

how to set admob banner ad in navigation drawer please my last hope you

justcoder