开发者

Getting a resultCode from a PendingIntent that starts an Activity?

开发者 https://www.devze.com 2023-03-10 06:43 出处:网络
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

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

精彩评论

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