Home > Software engineering >  How to save ImageView image in SharedPreference and display in other activity (Gridview)?
How to save ImageView image in SharedPreference and display in other activity (Gridview)?

Time:06-04

How do I save ImageView image in SharedPreference and didplay in other activity (Gridview)

CodePudding user response:

You can save Image in SharedPreferences, by converting the image to Base64 format.

If you convert it, you would have an image in String format, that can be saved to SharedPreferences normally, and when you would like to retreive the image, you concert from Base64 to Bitmap.

You can check this answer, I believe it will help you.

  • Related