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

Published: 06 October 2020
on channel: Technical Coding
770
23

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
   / technicalcoding  

Support us through patreon:-
https://www.patreaon.com/technicalcoding

check out my website:-
https://technical-coding.blogspot.com


Follow us on Facebook page:-
  / techno-coding-488399231922328  

Follow me on Intagram:-
  / pritish174  


#sharedpreference #Androiddevelopment #AndroidDev #androidstudio