ravi8x / Android-Image-Picker-and-Cropping

Android choosing image from camera or gallery with Crop functionality
GNU General Public License v3.0
114 stars 54 forks source link

Setting previous selected image not working #3

Open sjla opened 5 years ago

sjla commented 5 years ago

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.

ravi8x commented 5 years ago

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

sjla commented 5 years ago

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

sjla commented 5 years ago

@ravi8x should i move on from this library.

heons commented 4 years ago

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);
developerdeepesh commented 4 years ago

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

koohyar7342 commented 3 years ago

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