Тёмный

How to use Shared Preferences in kotlin 

Android Geek
Подписаться 3,5 тыс.
Просмотров 9 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@pablo_abt
@pablo_abt Год назад
I wanna congratulate you, your videos and explanations are really accurate, and they've helped me a lot, thank youu!!
@AndroidGeekCo
@AndroidGeekCo Год назад
Happy to hear that! 🤩 you are very welcome 😊
@planet3a
@planet3a Год назад
Great video. Waiting for dataStore explanation. I know you will nail that as well.
@AndroidGeekCo
@AndroidGeekCo Год назад
Thanks for your feedback 😊🙏, we have video about datastore , please check the link : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RQKP7TtiOrU.html ✨
@jeremyjames4964
@jeremyjames4964 Год назад
Thank you, I am a complete beginner (last week) but even I followed that and got it to work. Subbed, Liked.
@AndroidGeekCo
@AndroidGeekCo Год назад
You're welcome 😊glad it useful 😊
@b3nom
@b3nom Год назад
Your video was really helpful, thanks!
@AndroidGeekCo
@AndroidGeekCo Год назад
Thanks for your feedback🙏 , glad to hear that 😊
@kothasairam6388
@kothasairam6388 2 года назад
Thanks , Nice explanation
@AndroidGeekCo
@AndroidGeekCo 2 года назад
Glad you liked it 😊🙏
@JoanaGogoge
@JoanaGogoge 9 месяцев назад
Love your content, you're a great instuctor
@MuhammadRabnawaz-h9b
@MuhammadRabnawaz-h9b 8 месяцев назад
Thank you Mam for making this kind of videos and your way of explanation is Awesome❤
@AndroidGeekCo
@AndroidGeekCo 8 месяцев назад
My pleasure 😊
@tihuivan
@tihuivan 2 года назад
thanks for video
@AndroidGeekCo
@AndroidGeekCo 2 года назад
Welcome 😊🙏🏻
@aaaaa-qw3yf
@aaaaa-qw3yf 2 года назад
i want to know how can i make custom bottom bar plz ??
@AndroidGeekCo
@AndroidGeekCo 2 года назад
Hi , in the beginner playlist, there is a tutorial for Bottom Navigation : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-jj5Rd_GCQkY.html and also I want to record a another video about custom Bottom Navigation sooon...
@justeben
@justeben 2 года назад
I love this, thank you 👏
@AndroidGeekCo
@AndroidGeekCo 2 года назад
Glad you like it! :)
@Sagar_Asseccibilty
@Sagar_Asseccibilty 2 года назад
Hi how to i save button click change for background color change when user click 1 button. change color of layout background and then it save to shared preferences
@AndroidGeekCo
@AndroidGeekCo 2 года назад
Hi , what exactly you want save in shared? background color or button state? or both of them?
@Sagar_Asseccibilty
@Sagar_Asseccibilty 2 года назад
@@AndroidGeekCo only Background color. I have five buttons of color I want to set color with shared preferences
@AndroidGeekCo
@AndroidGeekCo 2 года назад
I got , base on tutorial , you can save your background color as pair string key in shared and then in onCreate set your background from shared, in the tutorial we call/read data when click on a button but you can call/read your data from shared directly from onCreate, if any question feel free to ask
@Sagar_Asseccibilty
@Sagar_Asseccibilty 2 года назад
@@AndroidGeekCo thanks
@peterkaram7929
@peterkaram7929 2 года назад
how can we pass the username and email to a bottom sheet dialog? can you show us please?
@AndroidGeekCo
@AndroidGeekCo 2 года назад
Sure, I will prepare a sample for you ASAP 🙂
@ladanirasekhi2266
@ladanirasekhi2266 2 года назад
Thanks😍
@AndroidGeekCo
@AndroidGeekCo 2 года назад
Welcome 😊
@fsantosdario
@fsantosdario 2 года назад
Hi, great video with grater content. Can you please explain me, if it is possible to adapt this to a recycler view? And if it is where should I put the getString() method? I have a recycler view that is showing images and all of them have a star to make it 'favourite', only one can be visible but when i turn the device the star is disappearing. Can we solve this with shared preferences?
@AndroidGeekCo
@AndroidGeekCo 2 года назад
Hi if you want to have fav list , you should work with room, save your fav item into database .each time ,when your app , runs , it can check database for showing the fav items . datastore or shared pref is not good solution 🙂
@fsantosdario
@fsantosdario 2 года назад
@@AndroidGeekCo Thanks for the quick response, but I only want to keep one and only one favourite, that's the reason why I wasn't thinking of a database only to store one item.
@AndroidGeekCo
@AndroidGeekCo 2 года назад
For one time use , that make sens 👍
@khemmahato8420
@khemmahato8420 Год назад
Teaching outdated thing now😎😎
@AndroidGeekCo
@AndroidGeekCo Год назад
You are wrong 😎😎 I guess you didn't check the channel 😁 we have also a video about DataStore😊 if you want to learn new things, just check the playlist 😎😎
@AndroidGeekCo
@AndroidGeekCo Год назад
Check : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RQKP7TtiOrU.html 😎😎😊
Далее
How to creat Notification in android kotlin
18:02
Просмотров 4,2 тыс.
Three NEW MAPS in Update 0.31.0 Nightmare | Standoff 2
01:48
How to use DataStore Preferences  in Kotlin
24:34
Просмотров 10 тыс.
How to Encrypt DataStore in Android
15:58
Просмотров 22 тыс.
Understanding and Using Services in Kotlin - Beginner
16:08
SharedPreferences in Android
11:01
Просмотров 6 тыс.
Three NEW MAPS in Update 0.31.0 Nightmare | Standoff 2
01:48