Inside a Codename One app, I need an area (for developers and testers) that shows:
- how much space is occupied by the Storage + FileSystemStorage;
- the available space (useful also to alert the user if there isn't enough space to record videos or to take photos);
- the list of saved files inside Storage + FileSystemStorage;
- an option to reset the app, clearing both Storage and FileSystemStorage.
In the Codename One API, I found Storage.getInstance().clearCache
and Storage.getInstance().clearStorage()
, but I didn't find their equivalent for FileSystemStorage.
I'd like some tips for all these requirements. Thanks.