Example usage for android.os Environment MEDIA_MOUNTED

List of usage examples for android.os Environment MEDIA_MOUNTED

Introduction

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

Prototype

String MEDIA_MOUNTED

To view the source code for android.os Environment MEDIA_MOUNTED.

Click Source Link

Document

Storage state if the media is present and mounted at its mount point with read/write access.

Usage

From source file:Main.java

public static boolean exterStorageReady() {
    return Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())
            || !Environment.isExternalStorageRemovable();
}

From source file:Main.java

public static Boolean internalStorageExists() {
    return (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()));
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

public static boolean hasSDCard() {
    boolean b = false;
    if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) {
        b = true;/*from  ww w. j a v  a  2  s.co m*/
    }
    return b;
}

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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

From source file:Main.java

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