private void getDevTotalSize(String paths) {//eg:"/dev"
File path = new File(paths);
Log.d(TAG, "path="+path.toString());
StatFs stat = new StatFs(path.getPath());
long total = stat.getTotalBytes();
long available = stat.getAvailableBytes();
}
private String getTotalSize(long volume){//最后将值格式化
return Formatter.formatFileSize(MainActivity.this, volume);
}