Open VAdaihiep opened 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/
/storage/emulated/0/bichooser/
So clearOldFiles() not working? And how can I clear folder bichooser before I pick a new photo?
clearOldFiles()
bichooser
@coomar2841 would you please answer this?
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.
I copy code in sample to pick image from device's gallery like:
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 folderbichooser
before I pick a new photo?