I need to know how much internal space is left on device, but "internal" space no external SD c开发者_如何学Card.
This code is used for external SD space.
how-to-check-available-space-on-android-device-on-mini-sd-card
anyone know how to get the free internal space?
Thanks in advance.
The code you linked to is what you need. However, rather than:
StatFs stat = new StatFs(Environment.getExternalStorageDirectory().getPath());
use something like:
StatFs stat = new StatFs(getFilesDir().getPath());
精彩评论