SharedPreferences - How to Save & Retrieve Data Android Studio | Beginner's Guide

SharedPreferences - How to Save & Retrieve Data Android Studio | Beginner's Guide

Ben O'Brien

4 года назад

65,934 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ben O'Brien
Ben O'Brien - 13.04.2020 18:04

If you guys have any requests on what tutorials you want to see, just leave a comment below! Thanks for watching :)

Ответить
Hunsen Drake
Hunsen Drake - 01.11.2023 14:45

is this working on a multiple data?

Ответить
Psalmy Joy Gelacio
Psalmy Joy Gelacio - 11.05.2023 21:22

Old Video Still saved me from due date of my thesis! Super Thank You

Ответить
kamekaze kwago
kamekaze kwago - 09.04.2023 12:43

why do i not have the function getText()

Ответить
Good💪🏹
Good💪🏹 - 19.02.2023 08:52

💕❤️

Ответить
FunRisk
FunRisk - 10.12.2022 12:51

thank you Sir😇

Ответить
guled nur
guled nur - 24.11.2022 03:52

Thank you, your video was very helpful

Ответить
Scuzz
Scuzz - 07.11.2022 00:23

Is there a way to save onto the shared preference without having the button, like once we put data into the field, it would just stay there automatically?

Ответить
Your Unity helper
Your Unity helper - 15.09.2022 12:52

its just like player prefs in unity

Ответить
iamgroks
iamgroks - 11.09.2022 01:48

Yo man. The guide is good, but I have a problem. Android studio shows that there are zero errors in the code, but when I run the app I get a crash. Can you help me with this?

Ответить
Hemant.R
Hemant.R - 22.08.2022 11:20

Not working application is crashing

Ответить
Leul Taye
Leul Taye - 24.05.2022 04:48

Thanks Ben!!!

Ответить
Polygoodboy
Polygoodboy - 14.05.2022 19:23

You are AWESOMEMOUS!!! Thank You!

Ответить
Boot Camp
Boot Camp - 14.05.2022 18:29

i have doubt which language you have used like kotlin or java cause i am a new learner

Ответить
Dan Manning
Dan Manning - 25.04.2022 20:31

very useful, thank you!

Ответить
Gurpreet Singh
Gurpreet Singh - 01.04.2022 01:27

This video is awesome, liked and subscribed !

Ответить
Henr1ce
Henr1ce - 16.03.2022 16:37

Thank you so much for the clear and easy to understand instructions :)

Ответить
harish lodha
harish lodha - 16.03.2022 15:55

Sir background video recorder app can store user record video....

Ответить
The Dumbest Doge
The Dumbest Doge - 24.02.2022 00:44

What pisses me off about this video is you taught me in just over 8 minutes what I have been trying to acquire from my professor for 2+ days and spending thousands of dollars for. Thank you.

Ответить
ashish kumar
ashish kumar - 04.02.2022 20:46

Thanks buddy you made my day

Ответить
جبهة لبنانية
جبهة لبنانية - 07.01.2022 16:52

I really loved your explanation!!!!!!!! Please make moreeee!

Ответить
Luke Hensley
Luke Hensley - 27.12.2021 08:31

Thanks for your videos.

Ответить
Jar Jar Bricks
Jar Jar Bricks - 19.11.2021 05:06

You saved my life man. Many thanks!

Ответить
Carlos Aguirre
Carlos Aguirre - 28.10.2021 22:34

Thanks!! It's so userful!! 😁

Ответить
Immortal Gaming
Immortal Gaming - 17.10.2021 09:03

Thank you bro... Best tutor n tutorial on Shared Preference.... exactly what I looked for my Sms forward app! Thanks a ton

Ответить
Wellington Rocha
Wellington Rocha - 09.09.2021 01:52

perfect tutorial!! Thanks!!

Ответить
Romuald Grandin
Romuald Grandin - 17.07.2021 22:51

Thanks you for this tutorial.. Do you can to help me for an example with to getInt() and putInt() please ;)

Ответить
Ilias Papadodimas
Ilias Papadodimas - 15.07.2021 10:50

Hello dear friend. Do you have any tutorial on how i can have preferences by user? i am using xampp to store the users in users table, then i want another table for lets say results, so a signed in user can choose from 1 to 5 and got stored to the table results by user id

Ответить
Mr. Marcial Glori
Mr. Marcial Glori - 15.07.2021 10:05

Can we put the sharedpreferences in a list<>? Or an array.

Ответить
Randy4i i
Randy4i i - 15.07.2021 01:19

Thank you sir

Ответить
Nik Uzair
Nik Uzair - 05.06.2021 18:54

THANK YOU SO MUCH!!!!!!!

Ответить
Hugo
Hugo - 24.05.2021 15:41

My right ear liked this video

Ответить
swalloich
swalloich - 23.05.2021 03:15

I scoured documentation, and stack overflow posts with little results. This video helped tremendously, thanks m8.

Ответить
Rivaa Vadher
Rivaa Vadher - 28.04.2021 21:18

Thank you so much. I have been searching about this for days😭😭

Ответить
woonie
woonie - 22.04.2021 05:22

How can we edit after we saved??

Ответить
Abhiram Puranik
Abhiram Puranik - 14.04.2021 15:28

Thanks :)

Ответить
EeEe
EeEe - 07.04.2021 12:33

my right ear really enjoyed this video

Ответить
Aayush Mishra
Aayush Mishra - 04.04.2021 13:21

left ear: am i joke to you?

Ответить
Felix Wong
Felix Wong - 31.03.2021 15:48

Thank you. I'm still learning and it was helpful!❤

Ответить
Defense89
Defense89 - 04.02.2021 22:40

awesome tutorial , how can we read all saved stuff ? i have a tic tac toe project to do , first page is a choose player list and an option to add a player , each player score are saved on shared preference, you then must choose an image to play tic tac toe default are X and O. finnaly once the 2 player has chose , tic tac toe game can start. when a player wins scores are updated on shared preferences. but how do you read all shared preference and show them as a choice to click.

Ответить
Xandar
Xandar - 31.01.2021 22:37

Hi, is there a way to store those data after APP is close and once it gets open again we still have the same data written. Thnx.

Ответить
Zakie Watin
Zakie Watin - 22.01.2021 11:11

SharedPreferences are loading my default value instead of saved value. I have everything correct. My SharedPrefs save properly in one activity, but the values don't save at all in other activities.

Ответить
pervyshrimp
pervyshrimp - 22.12.2020 14:01

dude you saved me thank you so much

Ответить
ARKA SAHA
ARKA SAHA - 18.12.2020 06:50

Just needed this 😀

❤️❤️









Thanks.🙏

Ответить
Julia
Julia - 09.12.2020 21:32

It's really clear the way you explain and it's useful for me. Thanks !!

Ответить
TM
TM - 26.11.2020 11:35

It's not working man it shows shared preference app stopped working

Ответить
Subramanian Chenniappan
Subramanian Chenniappan - 24.11.2020 20:34

Thanks bro

Ответить
Leonz
Leonz - 05.11.2020 23:41

You are the OG, Thanks for this tutorial!

Ответить
G P
G P - 10.10.2020 22:51

Thank you for this video and for gracefully teaching me what the android docs couldn't

Ответить
~DubsticK~
~DubsticK~ - 04.10.2020 19:22

Hi man, nice video! I got one question tho. Is there a way that the value on the next page changes whenever the user fills in a new value? Now it only saves the first one.

Ответить