Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. Step1 : A calls B with startActivity(intent).
  2. Step2 : B calls serviceConnector to send event to the service process and finish itself. It has no UI. It is set as Theme.NoDisplay.
  3. Step3 : Service callbacks init C if not exist yet and C handle service responses event.
  4. Step4 : In one case, C calls B with startActivity(intent)
  5. Step5 : B calls serviceConnection to send event. No UI. C will onPause and when B finsih itself, C onResume()
  6. Step6: Service callbacks and found C already exist, no create new one. C handle service respsonses.
  7. Step7: user click button on C Fragement activity, C calls finish itself, But only C got onPause(). C couldn't be finish, no onStop(), no onDestroy() is called.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement