并且销毁BCD还要刷新A内的数据,应该要用starActivityForResult么?单例模式能行么?
伊谢尔伦2017-04-17 17:48:15
If A will only be returned in B, then use startActivityForResult
startActivityForResult
如果在B, C, D都有可能返回A, 同时不会有同时两个A的话, 使用SingleTask模式, 直接在B/C/D中直接启动A, 根据singleTask的特性就会自动销毁A之后启动的Activity, 返回数据可以直接通过intent传数据, 然后再onNewIntent()
onNewIntent()
to refresh the view🎜伊谢尔伦2017-04-17 17:48:15
Direct call back to A can be achieved by clearing the top of the stack or directly finishing when switching between B, C, and D.
Refreshing the page when returning to A can be achieved through the onResume method or broadcast.