为什么通过startActivityForResult()方式去启动launchMode=singleTask的Activity,onActivityResult()会被立即回调且resultCode值为RESULT_CANCEL??
真的是这个样子吗?
可以发现在5.0之后,就不出现这种情况。
launchMode为singleTask 只会出现在5.0之前,在5.0以后所有的launchMode都可以接受返回值。
建议:在android中,activity之间传递参数建议使用EventBus第三方框架来替代工作。这样可以很优雅?
EventBus官方源码地址: https://github.com/greenrobot/EventBus
EventBus官方使用文档:http://greenrobot.org/eventbus/documentation/
EventBus使用心得技巧:http://blog.youkuaiyun.com/u010566681/article/details/52119931