List of usage examples for android.os Environment getExternalStorageState
public static String getExternalStorageState()
From source file:Main.java
public static boolean hasSDCard() { if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { return false; } else {//from w w w . j a va2s . c o m return true; } }
From source file:Main.java
public static boolean isSdcardMounted() { return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED); }
From source file:Main.java
public static boolean existFlash() { if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { return true; } else// www .java2s. c o m return false; }
From source file:Main.java
public static boolean isExitsSdcard() { return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED); }
From source file:Main.java
public static boolean isSDCardMounted() { return Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED); }
From source file:Main.java
public static boolean haveSDCard() { if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { return true; }//from w w w . j a va 2s .com return false; }
From source file:Main.java
public static boolean isSdCardExist() { return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED); }
From source file:Main.java
public static boolean isSDCardMounted() { return Environment.getExternalStorageState().equalsIgnoreCase(Environment.MEDIA_MOUNTED); }
From source file:Main.java
public static boolean isSDcardExist() { return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED); }
From source file:Main.java
public static String getSdcardDir() { if (Environment.getExternalStorageState().equalsIgnoreCase(Environment.MEDIA_MOUNTED)) { return Environment.getExternalStorageDirectory().toString(); }/*from w ww. ja v a 2 s. com*/ return null; }