resolveUri failed on bad bitmap uri (Android studio) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

resolveUri failed on bad bitmap uri (Android studio)

I'm trying to get an image from the firebase db and assign it to an imagebutton to preview it but i get the fail "resolveUri failed on bad bitmap uri" Here my related codes: var_resim2=dataSnapshot.child("user_resim").getValue().toString(); Uri my_resim = Uri.parse(var_resim2); kul_resim.setImageURI(my_resim); What should i try to get rid of this error ?

14th Jul 2017, 4:22 PM
İsmail Gülseren
İsmail Gülseren - avatar
1 Answer
+ 1
the best and easiest way to get an image from firebase or a URL is using Picasso library. That is the answer for those who will see this question later on.
24th Jul 2017, 8:34 PM
İsmail Gülseren
İsmail Gülseren - avatar