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 do i do wrong?
using Picasso
lib is the best way : add this to your gradle
compile 'com.squareup.picasso:picasso:2.5.2'
then
Picasso.with(this).load(var_resim2).into(kul_resim);
or you need to download and then set it to the ImageView
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.