Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imageChooserManager.clearOldFiles() not working? #156

Open
VAdaihiep opened this issue Feb 26, 2016 · 2 comments
Open

imageChooserManager.clearOldFiles() not working? #156

VAdaihiep opened this issue Feb 26, 2016 · 2 comments

Comments

@VAdaihiep
Copy link

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
Copy link

@coomar2841 would you please answer this?

@coomar2841
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants