title: How to use SharedPreferences to save a URI, or any Storage?
body: <pre><code>URI imageUri = null;
  
  //Setting the Uri of aURL to imageUri.
  try {
      imageUri = aURL.toURI();
  } catch (URISyntaxException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
  }
  </code></pre>
  
  <p>I am using this code to translate a URL to a URI. How could I save the imageUri to a SharedPreferences, or a memory where it wouldnt be deleted onDestroy()?</p>
  
  <p>I dont want to do SQLite database because the URI will change when the URL's change.I dont want to use up memory for unused URI's</p>