List of usage examples for android.os Environment getExternalStorageState
public static String getExternalStorageState()
From source file:Main.java
public static boolean noSdcard() { return !Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()); }
From source file:Main.java
public static boolean isMounted() { return Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()); }
From source file:Main.java
public static boolean isSDCardAvaiable() { try {/* w ww. ja va 2s. co m*/ return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED); } catch (Exception e) { } return false; }
From source file:Main.java
public static boolean isSDCardExist() { String state = Environment.getExternalStorageState(); if (state.equals(Environment.MEDIA_MOUNTED)) return true; else// w w w . j a v a 2 s .co m return false; }
From source file:Main.java
public static boolean isSDcardState() { String sdcardState = Environment.getExternalStorageState(); if (sdcardState.equals(Environment.MEDIA_MOUNTED)) { return true; }/*from w ww . j a v a 2s . c o m*/ return false; }
From source file:Main.java
public static boolean hasSDCard() { return Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()); }
From source file:Main.java
public static boolean checkExternalStorageAvailable() { String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state)) { return true; } else {/*from ww w.j a v a 2s . c om*/ return false; } }
From source file:Main.java
public static boolean isSDCardAvailable() { boolean flag; if (Environment.getExternalStorageState().equals("mounted")) flag = true;// w ww . j a va 2 s . c om else flag = false; return flag; }
From source file:Main.java
public static boolean isSdcardReady() { return Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()); }
From source file:Main.java
public static boolean hasSdCard() { if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { return true; }/* www.j a va 2s .co m*/ return false; }