title: How to save cropped image uri in shared Preference
body: <p>I have selected an image and cropped it. But I want to save the cropped image uri in shared preference so that it can be showed later. I know how to save in shared preference, but the problem key is "how I can get the image URL of the cropped image"</p>
  
  <pre><code>........................
  Intent intent = new Intent();
  intent.setType("image/*");
  intent.setAction(Intent.ACTION_GET_CONTENT);
  // code for crop image
  intent.putExtra("crop", "true");
  intent.putExtra("aspectX", 0);
  intent.putExtra("aspectY", 0);
  intent.putExtra("outputX", 200);
  intent.putExtra("outputY", 150);
  intent.putExtra("return-data", true);
  startActivityForResult(Intent.createChooser(intent, getString(R.string.image_action)),
                  Code);
  ........................
  </code></pre>
  
  <p>And in <code>onActivtyResult()</code> I retrieve it:</p>
  
  <pre><code>if (resultCode == Activity.RESULT_OK) {
      if (requestCode == SELECT_IMAGE) {
                Bundle extras = data.getExtras();
            Bitmap photo = extras.getParcelable("data");
                imageView.setImageBitmap(bm); 
                // I want to save the cropped bitmap image's url into preference here
          } 
  }
  </code></pre>
  
  <p>I can save the bitmap in preference in <code>Base64</code> format, but it is not recommended to save such huge data in preference. How can I save only the url of the new cropped image so that I can retrieve the image later.</p>