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