I have provide two objects of type PendingIntent
to be passed to SmsManager.sendDataSms()
. These two pendingIntents are used to trigger a service at a later time.
According to documentation:
this PendingIntent is broadcast when the message is successfully sent, or failed. The result code will be Activity.RESULT_OK
The question is how can I retrieve this 'result code' inside my service?
Basically, except for Activity
(through onActivityResult()
or something), none of the application components has a mean to retrieve this 'result code' passed to different variations of PendingIntent.send()
.