android 获取存储空间大小
摘要:
#获取External Storage 上的存储空间/可用存储空间大小StatFs state = new StatFs(Environment.getExternalStorageDirectory().getAbsolutePath());long blockSize = state.getBlockSize(); long blockCount = state.getBlockCount();long availableCount = state.getAvailableBlocks();long totalSpace = blockCount * blockSize / 1024; . 阅读全文