title: How to save Image in shared preference in Android | Shared preference issue in Android with Image
body: <p>In my application after login I have to save user name and image in shared preference for other pages. I am able to save name in preference but can't get any where how to save image.</p>
  
  <p>I am trying something like that-</p>
  
  <pre><code>SharedPreferences myPrefrence;
      String namePreferance="name";
  
      String imagePreferance="image";
  
  SharedPreferences.Editor editor = myPrefrence.edit();
                  editor.putString("namePreferance", itemNAme);
                  editor.putString("imagePreferance", itemImagePreferance);
                  editor.commit();
  </code></pre>
  
  <p>I am trying to save image as string after convert it into object. But when I reconvert it into bitmap I did not get anything.</p>