如题,从 ActivityA start ActivityB,B的launchMode为singleTask; 问,如何将 ActivityB 的结果返回给 ActivityA?
小伙看你根骨奇佳,潜力无限,来学PHP伐。
startActivityForResult
setResult
finish
onActivityResult
You can use some event frameworks such as EventBus and Otto to replace Android's native intent communication.
startActivityForResult
Start BsetResult
and thenfinish
onActivityResult
receives dataYou can use some event frameworks such as EventBus and Otto to replace Android's native intent communication.