Hi,
If got a String and I want to convert it into a Bitmap thanks ;)
Hi,
If got a String and I want to convert it into a Bitmap thanks ;)
I converted an Bitmap to String to do some work, now I want to convert it back... it looks like "android.graphics.Bitmap@43fd34c0"
Simply stated, you can't.
That string is produced by the default Object.toString()
method. It does not encode the information content of the object, and there is nothing in the standard class libraries that will turn it back into a reference to the original object ... assuming that it still exists.
Your only hope is if you create a Map<String,Bitmap>
and populate it with mappings; e.g.
Map<String, Bitmap> map = new HashMap<String, Bitmap>();
...
map.put(someBitmap.toString(), someBitmap);
...
Bitmap retrieved = map.get(someString);