How to load content:// image in Image View by using picasso | بلاگ

How to load content:// image in Image View by using picasso

تعرفه تبلیغات در سایت

آخرین مطالب

امکانات وب

Vote count: 0

I am using File Uri process to save images captured by user.

This is what i get in onActivityResult() after user successfully takes an image.

content://com.myapp.app.fileprovider/app_cam_images/App_photo_1518435085337 

This is what i do to load image in ImageView

Picasso.with(this).load(imageUri).into(mImageView, new Callback() {
            @Override
            public void onSuccess() {
                loadingAnimation.setVisibility(View.INVISIBLE);
            }

            @Override
            public void onError() {
                loadingAnimation.setVisibility(View.INVISIBLE);
            }
        });

The issue is that it does not load any image in the image view.

asked 23 secs ago
Kirmani88

...
نویسنده : استخدام کار بازدید : 8 تاريخ : دوشنبه 23 بهمن 1396 ساعت: 17:50