I have a main action and sub-activity. The main action starts the sub-activity using startActivity and passes the object to the intent. Sub-activity reads an object from an intent in its onCreate action. Sub-activity updates the object, and then returns to the main action using startActivity, passing the updated object back again. However, the main functions of onCreate are not called, so the code that it contains to read the passed object does not start.
Further research showed that the main activity of the onPause event is triggered, that is, it is suspended only when the sub-activity is performed, therefore, when the auxiliary activity starts the main action again, it simply calls.
Does anyone know if there will be any flaws if I transfer my data recovery / storage operations to onResume and onPause events? I do not use onCreate savedInstanceState, should I be?
How else do you pass a set of data items between actions without using a database or these settings? Should I use a database? I have about 20 fairly separate data items.
Any help would be greatly appreciated
source share