title: unable to load photo error is occur when image from a resource folder is try to crop
body: <blockquote>
  <pre><code>   //crop intent of camera
     Intent cropIntent=new Intent("com.android.camera.action.CROP"); 
     //get a file from a resource folder
     File f=new File("android.resource://"+this.getResources().getResourceName(R.drawable.i10)+".jpg");
    Toast.makeText(this,f.getPath(),5).show();
        f.setWritable(true);
        f.setExecutable(true);
        f.setReadable(true);
         //set data to a Intent
        cropIntent.setData(Uri.parse(f));
        cropIntent.setType("image/*");
        cropIntent.putExtra("crop",true);
        cropIntent.putExtra("aspectX", 1);
        cropIntent.putExtra("aspectY", 1);
        cropIntent.putExtra("outputX", 256);
        cropIntent.putExtra("outputY", 256);
        cropIntent.putExtra("return-data", true);
        cropIntent.putExtra("scale",true);
        startActivityForResult(cropIntent, 2);
         //start activity
         Toast.makeText(this,"croping",5).show();
  </code></pre>
  </blockquote>
  
  <p>'when i will open crop activity it will throw toast message that unable to load image</p>