coomar2841 / image-chooser-library

An Easy Image/Video Chooser Library for your Android Apps
646 stars 192 forks source link

imageChooserManager.clearOldFiles() not working? #156

Open VAdaihiep opened 8 years ago

VAdaihiep commented 8 years ago

I copy code in sample to pick image from device's gallery like:

chooserType = ChooserType.REQUEST_PICK_PICTURE;
imageChooserManager = new ImageChooserManager(this,
                ChooserType.REQUEST_PICK_PICTURE, true);
imageChooserManager.setImageChooserListener(this);
imageChooserManager.clearOldFiles();

But when I picked a photo more than 2 times, the old photo is not deleted, it still in folder /storage/emulated/0/bichooser/

So clearOldFiles() not working? And how can I clear folder bichooser before I pick a new photo?

firaskafri commented 8 years ago

@coomar2841 would you please answer this?

coomar2841 commented 8 years ago

There's a threshold of 500 MB. If the folder size is more than 500MB, only then it will clear the old files. I should probably add some documentation regarding that.