Log.i("123", this.getCacheDir().getPath());
Log.i("123", this.getFilesDir().getPath());
Log.i("123", Environment.getDataDirectory().getPath());
//Log.i("123", Environment.getRootDirectory().getPath());
Log.i("123", this.getExternalCacheDir().getPath());
Log.i("123", this.getExternalFilesDir(null).getPath());
Log.i("123", Environment.getExternalStorageDirectory().getPath());
Log.i("123", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_ALARMS).getPath());
Log.i("123", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).getPath());
Log.i("123", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getPath());
Log.i("123", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES).getPath());
Log.i("123", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_NOTIFICATIONS).getPath());
Log.i("123", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).getPath());
Log.i("123", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PODCASTS).getPath());
Log.i("123", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_RINGTONES).getPath());
StatFs sf=new StatFs(Environment.getExternalStorageDirectory().getPath());
//每块的大小
long blockSize = sf.getBlockSize();
//总的块的个数
long blockCount=sf.getBlockCount();
//可用的块的个数
long availableCount=sf.getAvailableBlocks();
//空闲块的个数
long freeCount=sf.getFreeBlocks();
Log.i("123", "总的大小"+(blockSize*blockCount/1024/1024));
Log.i("123", "可用大小"+(blockSize*availableCount/1024/1024));
Log.i("123", "已用的大小"+((blockSize*blockCount)-(blockSize*availableCount))/1024/1024);