I am trying to do a "ToDoListApp" and my problem is that when I add some tasks to do and then close the app everything is deleted and the app starts anew.
I saw some other similar questions and it seems the solution is OnSaveInstanceState(Bundle outState)
but I have a generic list with a class that I made List<MyClass>
. My Problem is that when I write outstate.Put…
there is no option for my array I can only choose between int, string, charsequence and parcelable. So my question is how can I save the state of my app?
>(mString);`. Could you edit it so that the answer is truly correct.