Hi I have an application and it has 2 fragments HomeFragment and ListFragment and also DetailActivity and UpdateActivity and AddActivity and when I go from fragment ListFragment to UpdateActivity | DetailActivity then HomeFragment saves the Bundle, and when I navigate back it doesn't load the Bundle (Also I erase extra Activities so they don't double up)
Asked
Active
Viewed 70 times
0
-
What do you mean by "save the `Bundle`" and "load the `Bundle`"? Please show some code and indicate where the problem is. – David Wasser Oct 02 '22 at 10:32
-
``` D/ContentValues: onPause: Bundle[{breakfast=2, dinner=3, lunch=1}] D/ContentValues: onPauseButSet with "setArguments()": Bundle[{breakfast=2, dinner=3, lunch=1}] D/ContentValues: getArguments + restoreData: null D/ContentValues: onCreateView + getArguments: null ``` – Zenisoft Oct 03 '22 at 14:10
-
Hi, please do not put code or log snippets in comments. These cannot be formatted properly and are not readable. Just edit your question and add the code snippets and/or log output there. – David Wasser Oct 03 '22 at 17:33
-
Also, the logs are not usable without seeing the code that generates the logs. Please edit your question and post the relevant parts of the code. We aren't mind readers ;-) – David Wasser Oct 03 '22 at 17:34
-
I fixed the problem, i just use SharedPreferences instead of SavedInstanceState – Zenisoft Oct 03 '22 at 20:26