84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
如题,从 ActivityA start ActivityB,B的launchMode为singleTask;问,如何将 ActivityB 的结果返回给 ActivityA?
小伙看你根骨奇佳,潜力无限,来学PHP伐。
startActivityForResult
setResult
finish
onActivityResult
可以使用一些事件框架比如EventBus和Otto,代替Android原生的intent方式通讯。
startActivityForResult
启动BsetResult
然后finish
onActivityResult
接收数据可以使用一些事件框架比如EventBus和Otto,代替Android原生的intent方式通讯。