+ 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 ?
1 Respuesta
+ 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.