Example usage for android.os Environment getExternalStorageState

List of usage examples for android.os Environment getExternalStorageState

Introduction

In this page you can find the example usage for android.os Environment getExternalStorageState.

Prototype

public static String getExternalStorageState() 

Source Link

Document

Returns the current state of the primary shared/external storage media.

Usage

From source file:Main.java

public static boolean isSDEnable() {
    String en = Environment.getExternalStorageState();
    return en.equals(Environment.MEDIA_MOUNTED);
}

From source file:Main.java

public static boolean checkSDCardIsExit() {
    return Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED);
}

From source file:Main.java

public static boolean getSDCardStatus() {
    if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
        return true;
    }//from   w  w  w .j  ava  2s . com
    return false;
}

From source file:Main.java

public static boolean isSDCardExist() {
    if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
        return true;
    } else {/*from w  ww.  j a v a  2  s  . c  o  m*/
        return false;
    }
}

From source file:Main.java

public static boolean isSDcardExist() {
    if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
        return true;
    } else {//w  ww.  j av  a 2s .co  m
        return false;
    }
}

From source file:Main.java

public static boolean isSdcardExist() {
    if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
        return true;
    } else {/*from  w w w. j  a  v  a 2  s. c o  m*/
        return false;
    }
}

From source file:Main.java

public static boolean checkSDCardAvailable() {
    return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);
}

From source file:Main.java

public static boolean checkSDCardExist() {
    if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
        return true;
    } else {// w w  w .ja  v  a2  s  . co m
        return false;
    }
}

From source file:Main.java

public static boolean isExistsSdCard() {
    if (Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) {
        return true;
    } else {/*  w  w  w . ja  va 2 s  .c  o m*/
        return false;
    }
}

From source file:Main.java

public static final boolean isSdcardMounted() {
    return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);
}