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;
}

相关文章:

  • 2021-07-02
  • 2022-12-23
  • 2022-02-04
  • 2021-09-26
  • 2022-12-23
  • 2021-05-30
  • 2021-11-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2021-09-03
  • 2021-07-05
  • 2022-01-24
  • 2021-12-15
相关资源
相似解决方案