The same stack after stack Activity Activity jump to the middle click back to return Which Activity?

From the same stack behind the forward edge of the page jump page:

E.g:


From Activity4 to Activity2 jump, we want to ensure Activity2 state unchanged, and return key point is to return to Activity1 instead Activity4 , can AndroidManifest.xml settings file android: launchMode = "singleTask"

intent to open Activity2  not walk when transmitted data Activity2 of the onCreate () method  and in onResume () can not return the data receiving process, but may onNewIntent () receiving method   and then the next step

Data transfer:

Receive data:


So you want to be able to get the data back in the.

That's Activity startup mode, startup mode, I want to write alone. (Willful face)

                                                                                           

Guess you like

Origin blog.csdn.net/cunjicsdn/article/details/52652122