开发者

Getting a resultCode from a PendingIntent that starts an Activity?

Is there any possible way to get the resultCode from an activity that's launched from a pendingIntent? The onFinished listener for PendingIntent.send() is only called immediately with a resultCode of RESULT_CAN开发者_StackOverflowCELED, which doesn't help me at all.


No. The nature of the PendingIntent is such that you can never tell WHEN it will be invoked: the calling Ativity may be completely shutdown or possibly even uninstalled by the time it is started. Therefore there can be no reliable way to receive the response with startActivityForResult.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜