Handle Activity State Changes using onSaveInstanceState | Android Tutorial 2020

  Рет қаралды 14,953

Daily Coding

Daily Coding

Күн бұрын

Пікірлер: 48
@arek9430
@arek9430 2 жыл бұрын
Thanks, exactly what I was looking for.
@DailyCoding
@DailyCoding 2 жыл бұрын
Thanks 🙏
@Motivational-Mango
@Motivational-Mango 2 ай бұрын
alright sumojit good job my friend
@DailyCoding
@DailyCoding 2 ай бұрын
Thanks 🙏
@LuisAlbertoSanchezLopez
@LuisAlbertoSanchezLopez 2 жыл бұрын
Awasome. Thank you!
@DailyCoding
@DailyCoding 2 жыл бұрын
Thanks 🙏
@SumanDas-ey8ro
@SumanDas-ey8ro 4 жыл бұрын
Wow... Superbbbb... Dude...
@DailyCoding
@DailyCoding 4 жыл бұрын
Glad you liked it. #dailycoding
@saitejaveeragani4787
@saitejaveeragani4787 4 жыл бұрын
Keep up the great work!
@DailyCoding
@DailyCoding 4 жыл бұрын
Thanks, will do!
@Fraps224
@Fraps224 2 жыл бұрын
Thank you sir, you helped me a lot!
@DailyCoding
@DailyCoding 2 жыл бұрын
Great to hear from you ☺️☺️☺️
@SumanDas-ey8ro
@SumanDas-ey8ro 4 жыл бұрын
Dude... I like Bundle out state..😊😊
@DailyCoding
@DailyCoding 4 жыл бұрын
Great. Just stick with me.
@NitishKumar-xo2wh
@NitishKumar-xo2wh 4 жыл бұрын
Look i am asking about navigation complete ui State as like you use in youtube after changing bottomtab they restore their app state were you last was on inside in using jetpack flow
@sabrinafeliz4822
@sabrinafeliz4822 3 жыл бұрын
I have table layout how about save all his rows
@DailyCoding
@DailyCoding 3 жыл бұрын
You can even try SharedPreferences. You can save entire model class.
@NitishKumar-xo2wh
@NitishKumar-xo2wh 4 жыл бұрын
Using bottomnavigationview save ui state with fragment like move in other fragment inside bottomnavigationview main fragment with navigation components ?
@ProjectAryawarta
@ProjectAryawarta 2 жыл бұрын
I have many data and I can't do all these. Is there any android global configuration?
@DailyCoding
@DailyCoding 2 жыл бұрын
You can try using shared preferences.
@CivilUnboxing
@CivilUnboxing 4 жыл бұрын
Good....😍😘😍
@DailyCoding
@DailyCoding 4 жыл бұрын
Many many thanks. #dailycoding
@mistersir3185
@mistersir3185 4 жыл бұрын
how would you go about overriding onBackPressed? What am I doing wrong? Can you please help me? override fun onBackPressed() { val bundle = Bundle() bundle.putInt("key_counter", counter) super.onBackPressed() }
@mistersir3185
@mistersir3185 4 жыл бұрын
please help!
@DailyCoding
@DailyCoding 4 жыл бұрын
What is the issue?
@mistersir3185
@mistersir3185 4 жыл бұрын
@@DailyCoding thanks for replying. so the application restarts when I press the back button and then the I re run the app, everything is lost. So I want the app to load from where it left off when I re run the app after pressing on back button. How do I do this? Can you please reply me with the code? Thank you so much!
@DailyCoding
@DailyCoding 4 жыл бұрын
@@mistersir3185 In this video I've already explained to handle such a situation. Example is given in Java.
@NitishKumar-xo2wh
@NitishKumar-xo2wh 4 жыл бұрын
@@DailyCoding that's too outdated saving navigation state during bottomnavigation tabs using navigation components....
@danielmwinzi9223
@danielmwinzi9223 3 жыл бұрын
how can i save a card with its content when i press the back button
@DailyCoding
@DailyCoding 3 жыл бұрын
Use shared preference and onBackPressed in your activity class
@SAJJADAHMAD-uy3hu
@SAJJADAHMAD-uy3hu Жыл бұрын
Very nice explanation. Bro I have one question and my question is, will the call back method named onRestoreInstanceState be triggered when the activity is created after configuration changes?
@DailyCoding
@DailyCoding Жыл бұрын
It should trigger. But try out by adding that in an activity class.
@ryumaa666
@ryumaa666 2 жыл бұрын
can i use this for EditText? and How?
@DailyCoding
@DailyCoding 2 жыл бұрын
Already explained in this video. So watch again and solve your issue.
@pltsm3970
@pltsm3970 3 жыл бұрын
How to save a decimal number from an EditText into shared preferences and read back into EditText?? Thanks in advance
@DailyCoding
@DailyCoding 3 жыл бұрын
Hi mate! I've already created a playlist on SharedPrefrences. Hope you will get the answer there.
@Planet_Explorer360
@Planet_Explorer360 2 жыл бұрын
Sir I have seen you very well but my problem is that I want to view the PDF file in this way. Please make a video like this with PDF. It is very important to us.
@DailyCoding
@DailyCoding 2 жыл бұрын
Do you want to view the pdf?
@Planet_Explorer360
@Planet_Explorer360 2 жыл бұрын
@@DailyCoding yes
@Planet_Explorer360
@Planet_Explorer360 2 жыл бұрын
I tried to do you like that, but not, it's not
@Planet_Explorer360
@Planet_Explorer360 2 жыл бұрын
Attach this listener to the PDF
@DailyCoding
@DailyCoding 2 жыл бұрын
What are you trying to store in SavedInstanceState?
@anujgoyal5253
@anujgoyal5253 11 ай бұрын
code plz!
@DailyCoding
@DailyCoding 11 ай бұрын
C video description
@groinache
@groinache Жыл бұрын
is this gilfoyle?
RecyclerView Item Click | Best Practice Way
8:06
Practical Coding
Рет қаралды 99 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
ViewModel Explained - Android Architecture Component | Tutorial
8:27
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 150 М.
Activity Lifecycle in Android
6:20
Telusko
Рет қаралды 164 М.
FRAGMENTS - Android Fundamentals
17:29
Philipp Lackner
Рет қаралды 341 М.
Building a Mobile App in 2025: The BEST Technologies
13:31
Dan Ilies
Рет қаралды 139 М.