摘要:
String sdcard = Environment.getExternalStorageDirectory().getPath();File file = new File(sdcard);StatFs statFs = new StatFs(file.getPath());int availableSpare = (int) (statFs.getBlockSize()*((long)statFs.getAvailableBlocks()-4));需要import android.os.StatFs; 阅读全文
posted @ 2010-12-27 07:33
学海拾贝
阅读(883)
评论(0)
推荐(0)