title: if(resultCode==Activity.RESULT_OK) is returning false
body: <p>I am working on a very basic app which captures a photo using the phone's camera and sets it up on the ImageView. But the code is not entering the if(resultCode==Activity.RESULT_OK) statement. I understood this by using Log inside the if statement. Any idea how I can resolve this? Here is the onActivityResult()</p>
  
  <pre><code>@Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      // TODO Auto-generated method stub
      super.onActivityResult(requestCode, resultCode, data);
  
      if(resultCode==Activity.RESULT_OK){
          Log.v("cam"," resultCode");
          Bundle extras=data.getExtras();
          bmp=(Bitmap) extras.getParcelable("data");
          iv.setImageBitmap(bmp);
          button1.setText("Take Another");
      }
  }
  </code></pre>