Questions tagged [onsaveinstancestate]

230 questions
-1
votes
3 answers

IlegalStateException when onItemClick after restart

To reproduce, get the SSCCE Android Project on Github and : Touch the hamburger to display navigation menu Select Employees Select an Employee Touch the back button Touch the Overview button Select the application from the list Touch the hamburger…
Al Lelopath
  • 6,448
  • 13
  • 82
  • 139
-1
votes
1 answer

Exception during saving recyclerview state

I'm getting exception " Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.os.Bundle.putParcelable(java.lang.String, android.os.Parcelable)' on a null object reference" on onSaveInstanceState public…
-2
votes
1 answer

how to restore the data that has already been fetched in recyclerview from firebase in fragment recreation

I have retrieved the data from real time database in recycler view but after recreation of fragment, same data is being fetched again. I want to restore the data that has already been fetched and set it to the recycler view after fragment…
-5
votes
1 answer

how to retrieve data in fragment while sending and email in android

I am using a bottom bar in my project there is a mail option in it.in that there is option for attachment . my problem is when I click attachment button the data written to the edit text in to,subject n message get erased. After selecting the…
-7
votes
2 answers

How to keep the values of first activity and see them on switching back from second activity to first activity

I entered some text in the text boxes on first activity. Then, On pressing the "SAVE" button, I am moved to the second activity. Now, On pressing the "BACK" button, I am dropped back on the first activity where i am unable to see the values/text i…
1 2 3
15
16