I start with Android and get the initial question about switching between multiple actions.
I understand that I can move between two actions by calling an intent and then returning using setResult (). I want to know how to jump between several actions. In particular, I want to learn about the life cycle of a process. I understand how each ar onCreated () action begins, but I'm not sure how to implement onResume () or onRestart () when I want to return.
So basically I have 3 actions: Activity1, Activity2 and Anctivity3.
I start with Activity1 and then call Activity2 with Intent, and Activity2 calls Activity3. Using buttons. Now I want to return to Activity1 from Activity3. I do the same too. Make an intention and call startActivity (Activity1_Intent). But this gives a runtime error.
It seems to me that I need to implement OnResume () or onRestart (), but I'm not sure how to do this. In onCreate (), I create a gridView, so when I return, do I need to do this gridView again?
If anyone can give a little explanation regarding the manual, it would be great. Thank you very much.
android switch-statement
madu
source share