Jump for Android activity
1. Normal Jump
@ Explicit Jump
startactivity (New Instent (Activity.this,activity2.class));
NOTE: a---"B---" A (jump to B, press back, return to a)
To jump from one Activity1 to another Activity2, this Activity2 returns to the previous activity1,activity by executing the method: OnCreate (a)---onStart (a)--- Onresume (a)---onPause (a)---onCreate (b)---onStart (b)---onresume (b)---onStop (a)---onPause (b)---onrestart (a)--- OnStart (a)---onresume (a)---onStop (b)---OnDestroy (b)
@ implicit Jump
Customize action to jump through action
startactivity (New Intent (). Setaction ("Custom string Action"));
at the same time, configure the file to configure action and Categroy for Intent-filter in the activity.
2. Jump with return value (useless)
flow back and forth
Startactivityforresult (a)
Setresult (b)
Onactivityresult (a)
Android activity jump: Normal jump (Explicit jump, implicit jump) and pass-value jump