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
@sabrinafeliz48223 жыл бұрын
I have table layout how about save all his rows
@DailyCoding3 жыл бұрын
You can even try SharedPreferences. You can save entire model class.
@NitishKumar-xo2wh4 жыл бұрын
Using bottomnavigationview save ui state with fragment like move in other fragment inside bottomnavigationview main fragment with navigation components ?
@ProjectAryawarta2 жыл бұрын
I have many data and I can't do all these. Is there any android global configuration?
@DailyCoding2 жыл бұрын
You can try using shared preferences.
@CivilUnboxing4 жыл бұрын
Good....😍😘😍
@DailyCoding4 жыл бұрын
Many many thanks. #dailycoding
@mistersir31854 жыл бұрын
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() }
@mistersir31854 жыл бұрын
please help!
@DailyCoding4 жыл бұрын
What is the issue?
@mistersir31854 жыл бұрын
@@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!
@DailyCoding4 жыл бұрын
@@mistersir3185 In this video I've already explained to handle such a situation. Example is given in Java.
@NitishKumar-xo2wh4 жыл бұрын
@@DailyCoding that's too outdated saving navigation state during bottomnavigation tabs using navigation components....
@danielmwinzi92233 жыл бұрын
how can i save a card with its content when i press the back button
@DailyCoding3 жыл бұрын
Use shared preference and onBackPressed in your activity class
@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 Жыл бұрын
It should trigger. But try out by adding that in an activity class.
@ryumaa6662 жыл бұрын
can i use this for EditText? and How?
@DailyCoding2 жыл бұрын
Already explained in this video. So watch again and solve your issue.
@pltsm39703 жыл бұрын
How to save a decimal number from an EditText into shared preferences and read back into EditText?? Thanks in advance
@DailyCoding3 жыл бұрын
Hi mate! I've already created a playlist on SharedPrefrences. Hope you will get the answer there.
@Planet_Explorer3602 жыл бұрын
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.
@DailyCoding2 жыл бұрын
Do you want to view the pdf?
@Planet_Explorer3602 жыл бұрын
@@DailyCoding yes
@Planet_Explorer3602 жыл бұрын
I tried to do you like that, but not, it's not
@Planet_Explorer3602 жыл бұрын
Attach this listener to the PDF
@DailyCoding2 жыл бұрын
What are you trying to store in SavedInstanceState?