title: onActivityResult RESULT_OK can not be resolved to a variable in android?
body: <p>I am trying to launch camera in fragment but onActivityResult in fragment doesn't resolve RESULT_OK. What should i do?</p>
  
  <p>I am launching camera using:</p>
  
  <pre><code>public static final int CAMERA_REQUEST_CODE = 1999;
  
  Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
  startActivityForResult(cameraIntent, CAMERA_REQUEST_CODE);
  </code></pre>
  
  <p>get captured image using:</p>
  
  <pre><code>@Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      if (requestCode == CAMERA_REQUEST_CODE &amp;&amp; resultCode == RESULT_OK) {
          Bitmap bitmap = (Bitmap) data.getExtras().get("data");
          if (bitmap != null) {
          }
      }
  }
  </code></pre>
  
  <p>and i want captured image in current fragment!</p>