android - 当目标activity的launchMode为singleTask时,如何向源Activity返回数据?
伊谢尔伦
伊谢尔伦 2017-04-17 11:38:12
0
2
765

如题,从 ActivityA start ActivityB,B的launchMode为singleTask;
问,如何将 ActivityB 的结果返回给 ActivityA?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
洪涛
  1. In AstartActivityForResult Start B
  2. B processes the data setResult and then finish
  3. A overloadonActivityResult receives data
巴扎黑

You can use some event frameworks such as EventBus and Otto to replace Android's native intent communication.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template