title: Pick and crop image not working choosing google photos
body: <p>I pick a image google photos only return can't find item.</p>
  
  <p>This is the code to create intent for selecting photo:</p>
  
  <pre><code> Intent i = new Intent(Intent.ACTION_PICK,
      android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
      startActivityForResult(i,REQUEST_CODE_FROM_GALLERY);
  </code></pre>
  
  <p>Following my <code>activityresult</code> code:</p>
  
  <pre><code> @Override
          public void onActivityResult(int requestCode, int resultCode, final Intent data) {
              // TODO Auto-generated method stub
              super.onActivityResult(requestCode, resultCode, data);
              if (resultCode == RESULT_OK) {
                  switch (requestCode) {
                      case REQUEST_CODE_FROM_GALLERY:
                          Utils.toast_center(Main_Theme.this,""+data.getData());
                          try {
                              String root = Environment.getExternalStorageDirectory().toString();
                              File mydir = new File(root + "/Image");
                              mydir.mkdirs();
                              String fname = "user_image.jpg";
                              final File file = new File(mydir, fname);
                              Intent intent1 = new Intent("com.android.camera.action.CROP");
                              intent1.setType("image/*");
                              intent1.setData(data.getData()); // Uri to the image you want to crop
                              intent1.putExtra("scale", true);
                              intent1.putExtra("circleCrop", new String(""));
                              intent1.putExtra("return-data", false);
                              intent1.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, Uri.fromFile(file));
                              startActivityForResult(intent1, 03);
                          }catch (ActivityNotFoundException e){
                              Utils.toast_center(Main_Theme.this,"Something Went Error. Try Again");
                          }
                          break;
                      case 03:
  
                          File filee = new File(Environment.getExternalStorageDirectory().toString() + "//Image/user_image.jpg");
  
                          Bitmap bmp = BitmapFactory.decodeFile(filee.getPath());
                          iconn.setImageBitmap(bmp);
                          settheame();
                          break;
                  }
              }
          }
  </code></pre>
  
  <p>How to solve this problem?</p>