Ashwin Ashwin - 3 years ago 140
Android Question

How to find the amount of free storage (disk space) left on Android?

I am trying to figure out the available disk space on the Android phone running my application. Is there a way to do this programmatically?


Answer Source

Try StatFs.getAvailableBlocks. You'll need to convert the block count to KB with getBlockSize.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download