List of usage examples for android.os Environment getExternalStorageState
public static String getExternalStorageState()
From source file:Main.java
private static boolean isStorageAvailable() { String state = Environment.getExternalStorageState(); return Environment.MEDIA_MOUNTED.equals(state); }
From source file:Main.java
public static boolean existSD() { String sdStatus = Environment.getExternalStorageState(); if (sdStatus.equals(Environment.MEDIA_MOUNTED)) { return true; } else {/*from w w w . j av a 2s .co m*/ return false; } }
From source file:Main.java
public static boolean IsSDCARDMounted() { String status = Environment.getExternalStorageState(); if (status.equals(Environment.MEDIA_MOUNTED)) return true; return false; }
From source file:Main.java
public static boolean sdCardIsAvailable() { String status = Environment.getExternalStorageState(); return status.equals(Environment.MEDIA_MOUNTED); }
From source file:Main.java
public static boolean hasSdcard() { String status = Environment.getExternalStorageState(); if (status.equals(Environment.MEDIA_MOUNTED)) { return true; } else {/*from w ww . jav a2 s. c o m*/ return false; } }
From source file:Main.java
public static boolean isSDCardState() { final String state = Environment.getExternalStorageState(); return state.equals(Environment.MEDIA_MOUNTED); }
From source file:Main.java
public static boolean isExternalStorageAvailable() { if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { return true; } else {//from w w w.ja v a 2s. co m return false; } }
From source file:Main.java
public static boolean isSDCardPresent() { String storageState = Environment.getExternalStorageState(); return storageState.equals(Environment.MEDIA_MOUNTED); }
From source file:Main.java
public static boolean isExistSdCard() { boolean sdCardExist = Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED); return sdCardExist; }
From source file:Main.java
public static boolean isHasSdcard() { String status = Environment.getExternalStorageState(); if (status.equals(Environment.MEDIA_MOUNTED)) { return true; } else {//from w ww.j a v a 2 s. c om return false; } }