title: Crop saved Image using com.android.camera.action.CROP on android
body: <p>I have reads many question about this, but I still failed using this code... maybe anyone can corect my code... I want to crop an image from file that i know the location using com.android.camera.action.CROP like this...</p>
  
  <pre><code>    mImageCaptureUri = Uri.fromFile(f);
      Intent intent = new Intent("com.android.camera.action.CROP");
      intent.setType("image/*");
  
      intent.setData(mImageCaptureUri); 
      intent.putExtra("crop", true);
      intent.putExtra("outputX", 200);
      intent.putExtra("outputY", 200);
      intent.putExtra("aspectX", 1);
      intent.putExtra("aspectY", 1);
      intent.putExtra("scale", true);
      intent.putExtra("return-data", true);
  
      Bundle extras = intent.getExtras();
  
      if (extras != null) {               
          Bitmap photo = extras.getParcelable("intent");
  
          tampilan.setImageBitmap(photo);
      }
  
      File f = new File(mImageCaptureUri.getPath());            
  
      if (f.exists()) f.delete();
  </code></pre>
  
  <p>But when i run the code, nothing hapend... T.T
  can anyone help me??</p>