判断Tcard 是否满了。

public static boolean checkTCardisFull() {
String statue = Environment.getExternalStorageState();
if(Environment.MEDIA_MOUNTED.equals(statue)) {
File TCardDir = Environment.getExternalStorageDirectory();
StatFs sf = new StatFs(TCardDir.getPath());
int availCount = sf.getAvailableBlocks();
if(availCount > 0) {
return false;
}
}
return true;
}

posted @ 2012-07-14 11:44  wanqi  阅读(200)  评论(0编辑  收藏  举报