How to use Shared Preferences in kotlin

  Рет қаралды 9,018

Android Geek

Android Geek

Күн бұрын

❇️ How to use DataStore Preferences in Kotlin :
• How to use DataStore P...
Shared Preferences is one of the most intriguing data storage possibilities Android offers its users. Shared Preference is a method for storing and retrieving tiny quantities of primitive data as key/value pairs to a file on the device storage, such as String, int, float, and Boolean, that comprise your preferences in an XML file inside the app on the device storage.
Github:
github.com/Ezatpanah/Sharedpr...
✨ Join Medium to read thousands of valuable stories ✨
/ membership
If you're looking to enhance your Android skills or have any questions about the field, feel free to reach out to me on MentorCruise. I'm here to support your growth and learning! Let's connect and learn together! 📚💡
mentorcruise.com/mentor/reyha...

Пікірлер: 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 😊
@b3nom
@b3nom Жыл бұрын
Your video was really helpful, thanks!
@AndroidGeekCo
@AndroidGeekCo Жыл бұрын
Thanks for your feedback🙏 , glad to hear that 😊
@simonsarhin2114
@simonsarhin2114 Жыл бұрын
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 : kzfaq.info/get/bejne/iLd7g5qF2c-zook.html ✨
@kothasairam6388
@kothasairam6388 Жыл бұрын
Thanks , Nice explanation
@AndroidGeekCo
@AndroidGeekCo Жыл бұрын
Glad you liked it 😊🙏
@justeben
@justeben 2 жыл бұрын
I love this, thank you 👏
@AndroidGeekCo
@AndroidGeekCo 2 жыл бұрын
Glad you like it! :)
@jeremyjames4964
@jeremyjames4964 10 ай бұрын
Thank you, I am a complete beginner (last week) but even I followed that and got it to work. Subbed, Liked.
@AndroidGeekCo
@AndroidGeekCo 10 ай бұрын
You're welcome 😊glad it useful 😊
@user-rv5nz5tg6p
@user-rv5nz5tg6p 5 ай бұрын
Love your content, you're a great instuctor
@tihuivan
@tihuivan 2 жыл бұрын
thanks for video
@AndroidGeekCo
@AndroidGeekCo 2 жыл бұрын
Welcome 😊🙏🏻
@ladanirasekhi2266
@ladanirasekhi2266 2 жыл бұрын
Thanks😍
@AndroidGeekCo
@AndroidGeekCo 2 жыл бұрын
Welcome 😊
@user-or1gd6th8c
@user-or1gd6th8c 5 ай бұрын
Thank you Mam for making this kind of videos and your way of explanation is Awesome❤
@AndroidGeekCo
@AndroidGeekCo 5 ай бұрын
My pleasure 😊
@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 : kzfaq.info/get/bejne/oNBlhceQrKm1m40.html and also I want to record a another video about custom Bottom Navigation sooon...
@Program-withsagar2865
@Program-withsagar2865 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?
@Program-withsagar2865
@Program-withsagar2865 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
@Program-withsagar2865
@Program-withsagar2865 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 🙂
@fsantosdario
@fsantosdario Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
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 : kzfaq.info/get/bejne/iLd7g5qF2c-zook.html 😎😎😊
How to creat Notification in android kotlin
18:02
Android Geek
Рет қаралды 3,9 М.
Shared Preferences in Android Studio using Kotlin | Android Knowledge
11:46
Android Knowledge
Рет қаралды 2,8 М.
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 6 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 23 МЛН
Preferences DataStore in 10min (SharedPreferences deprecated)
11:14
Philipp Lackner
Рет қаралды 72 М.
SAVING DATA IN SHARED PREFERENCES - Android Fundamentals
11:17
Philipp Lackner
Рет қаралды 36 М.
Understanding and Using Services in Kotlin - Beginner
16:08
Android Geek
Рет қаралды 10 М.
Shared Preferences in Android Studio with Kotlin
16:16
Android WorldClub
Рет қаралды 16 М.
#3 How to use Koin DI with Retrofit in Kotlin
34:01
Android Geek
Рет қаралды 738
How to Encrypt DataStore in Android
15:58
Philipp Lackner
Рет қаралды 20 М.
#1 How to use Data-Binding in Kotlin(Complete Guide)
1:27:10
Android Geek
Рет қаралды 2,1 М.
How to use Extension Functions in Kotlin
34:46
Android Geek
Рет қаралды 677
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 6 МЛН