Android-Image-Picker-and-Cropping icon indicating copy to clipboard operation
Android-Image-Picker-and-Cropping copied to clipboard

Setting previous selected image not working

Open sjla opened this issue 5 years ago • 6 comments

Great work,but i am facing the issue when i am selecting the image from gallery and setting on imageview,it's working for first time but when i am again selecting the same image from gallery, it's not setting on imageview,setting previous cropped image.

sjla avatar Jun 11 '19 17:06 sjla

Have you tried calling ImagePickerActivity.clearCache(this); after your work is done / cancelled?

ravi8x avatar Jun 11 '19 17:06 ravi8x

@ravi8x Yes, i have done that.but not working. I am expecting help from you.

sjla avatar Jun 11 '19 17:06 sjla

@ravi8x should i move on from this library.

sjla avatar Jul 16 '19 18:07 sjla

I faced similar problem. And I solved it by using diskCacheStrategy() and skipMemoryCache() with GlidApp.

        // Load profile image from a file
        GlideApp.with(this)
                .load(Uri.fromFile(profileImageFile))
                .diskCacheStrategy(DiskCacheStrategy.NONE)
                .skipMemoryCache(true)
                .into(imgProfile);

heons avatar Dec 16 '19 02:12 heons

When i pick image from gallery after crop it not show in Imageview (in onActivity result getting intent data null)

developerdeepesh avatar Aug 02 '20 13:08 developerdeepesh

Great work,but i am facing the issue when i am selecting the image from gallery and setting on imageview,it's working for first time but when i am again selecting the same image from gallery, it's not setting on imageview,setting previous cropped image.

in imagePickerActivity in queryName method i use String name = returnCursor.getString(nameIndex)+new Date(); and problem sovled

koohyar7342 avatar Sep 26 '20 17:09 koohyar7342