Lovely tutorial. I just wonder if there is a way to start the app with the data loaded without pressing load! Just loaded by default. Anyone could help me with this? I have load clear and save and would like my app to have it loaded by default but I cannnot seem to make it
I believe you must have gotten a response to this. In instances like this, call the method in onCreate, then you will not need and event listener to invoke the call
Hey there what if I want to load the shared preferences without the load button and anything and directly load the values in screen?Right after starting? What do i do then?
Thank You for the great lesson🤗🤗 But I have One questin which is that sharedPreference is not able to be used in fragment .. is there any solution for this??
On NULL values with those '?' and all. as I migrated from JAVA to Kotlin just because I was fed up solving these null pointer exceptions please share your knowledge regarding null values, pointers how to prevent app crash because of that for Kotlin
Your Program won't crash in kotlin because of null pointer exception 😁 when a value can be null, and you access a property or function of it, you just use that '?' before to only execute that line if the value is not null
Thank god, finally someone who talks through the meaning and purpose of each line and argument. Excellent work, you're helping me pass senior design
Philipp, you are best.I really envy your ability to explain complex things easily.
This video is cleanly. Thanks for make this.
After watching so much tutorials i finally undestand thanks bro keep making such a helpful content
Great tutorial man, thanks for this. Easy and straight to the point
perfect explanation, thanks
Easy to understand and great
Thanks for this tutorial! Keep it going
Nice explanation! And if I'm not wrong, this can be used to save draft too
i wanna a tut about using shared preferences for to-do list that you made
exactly your are amazing one
Cool video, thanks mate. I have a question. I want to store arraylist of a user. I used gson but I didn't print. How can I do?
It's awesome already 🙂
thanks!
Thanks a lot.
Shared pref is used to save small king of user change setting in your app like : changing the theme to (dark) default is (white) like this am correct
Lovely tutorial. I just wonder if there is a way to start the app with the data loaded without pressing load! Just loaded by default. Anyone could help me with this? I have load clear and save and would like my app to have it loaded by default but I cannnot seem to make it
I believe you must have gotten a response to this. In instances like this, call the method in onCreate, then you will not need and event listener to invoke the call
How about saving my wallpaper image as bitmap in shared storage?
Is reading/writing shared pref ok on main thread? Should we care about that?
Hey there what if I want to load the shared preferences without the load button and anything and directly load the values in screen?Right after starting?
What do i do then?
Create the function and paste the code he wrote in "OnClickListener". Then call the function in the onCreate()
many thanks for your efforts. Will you make a demo for database read/write ? (like you mensioned at the end of this video (10:50)?
I showed this many times in my project Playlists like shopping list app, mvvm news app, running app
Thank You for the great lesson🤗🤗
But I have One questin which is that sharedPreference is not able to be used in fragment ..
is there any solution for this??
activity.getSharedPrefrences()
thanks man
Why there is warning for this
SharedPreferences.edit() without a corresponding commit() or apply() call
??? Please tell...
On NULL values with those '?' and all. as I migrated from JAVA to Kotlin just because I was fed up solving these null pointer exceptions please share your knowledge regarding null values, pointers how to prevent app crash because of that for Kotlin
Your Program won't crash in kotlin because of null pointer exception 😁 when a value can be null, and you access a property or function of it, you just use that '?' before to only execute that line if the value is not null
Pls how to open permission for data collector of code in user's consent on Android studio
Can someone use shared preference to pass information between fragments like intents.
Yes. You can. But using intents is prefered
GREAT
I second Preston.
How to save object in shared preferences ?? 😅😅
You can parse it to json.. But normally you use databases for that
AndroidDevs exactly!
(Y) Love your way of teaching
Glad to hear that!
@@PhilippLackner Can you concentrate on the MVVM pattern with another realtime example which has login functionality like that..