Android Sharedpreferences tutorial | how to use shared preferences android studio |sharedpreferences

preview_player
Показать описание
In this tutorial we will learn, How to use Shared Preferences in our android application to store data in the form of key-value pair..

-what is sharedpreferences in android?
Ans : Android provides many ways of storing data of an application. One of this way is called Shared Preferences. Shared Preferences allow you to save and retrieve data in the form of key,value pair.

#AndroidStudioTutorial #Sharedpreferences #Android #AndroidStudio #Codingwithdev

For Bussiness Inquiries

Subscribe My Channel #codingwitdev for more latest videos..
Thank You :-)
Рекомендации по теме
Комментарии
Автор

I tried 4-5 methods of Shared Preferences and lost two days until I find across something like this simple and Great!!!.
Congratulations

salaradosnica
Автор

Muchas gracias bro, me sirvio bastante

alfonsomoreno
Автор

Work is done without any doubts bro. 🙏

Sidex-gp
Автор

Thanks a lot man! As always very clear and constructed tutorial. Can you also create a video about using a new jetpack dataStore in Java for login session (storing user acount details)?

lucianrekkless
Автор

I Love of your work is done without getting me any doubts.

dunraksmey
Автор

Excellent but can you make a video about how to pass data from ActivityA to FragmentA?. The fragmentA is in ActivityB. Thanks in advanced.

idroid_pe
Автор

Hi friend! I'm beginner. Is a good practice do it? You create 3 static final variables in all Activities(MainActivity & HomeActivity).

code_luke
Автор

Everything is running good. When I launch the app and input name and id. I click on save button. There is no display of my name and email id on Welcome page?

rohitbhardwaj
Автор

Great Video! I have the issue here when i force stop the app, it does not save the last activity and returned to login. It shown error Reading a NULL string not supported here.

DailyEmirs
Автор

but how to change boolean value from another activity? help please

susanoo
Автор

Does the texts in the second page does not disappear even though I close the app and reopen it?

Matchadvmp
Автор

Iam stucked in a problem, I have designed 10 level quiz, it should be like 1st level unlock and reamaining should be locked. And when 1st level completed, the second level should be unlocked. And if I complete 5 levels and exit the apo, and when I open again, I should be in 6th level, please help me.

differentgaming
Автор

Sir how can I change the text field after I saved? Let us say I made typo on my name and want to change .. how I edit

woonie
Автор

I am not able to get the string value in home layout..can any one help me

ManojKumar-tzsd
Автор

The information of the first activity is not deleted, how strange

luis
Автор

Can I pass the data in the same way to another application ?

redwansharafatkabir
Автор

very nice tutorial sir worked like charm. but i have problem when i click logout, its sometime take us to login page and sometime exit the application. how to fix this??

coffeemachines