Android 检查是否安装SD卡

/**
* 检查是否安装SD卡
* @return
*/
public static boolean checkSaveLocationExists() {
  String sDCardStatus = Environment.getExternalStorageState();
  boolean status;
  if (sDCardStatus.equals(Environment.MEDIA_MOUNTED)) {
    status = true;
  } else
    status = false;
    return status;
  }

}

posted @ 2013-10-11 09:43  yshy  阅读(314)  评论(0)    收藏  举报