title: Check for resultCode in Android's BroadcastReceiver?
body: <p>I want to make a check if <code>resultCode</code> is <code>RESULT_OK</code> in Android's <code>BroadcastReceiver</code>'s <code>onReceive</code> method like we do in <code>onActivityResult</code> method of an Activity, but how will I do that is my question.</p>
  
  <p><strong>Receiver's code is:</strong></p>
  
  <pre><code>new BroadcastReceiver() {
  
              @Override
              public void onReceive(Context context, Intent intent) {
                  // TODO Auto-generated method stub
                  //This is what I like to check.
                  //if(resultCode == RESULT_OK)
              }
          };
  </code></pre>