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 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 hasSDCard() {
    return Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState());
}

From source file:Main.java

public static boolean isSdReady() {
    if (Environment.MEDIA_MOUNTED.equalsIgnoreCase(Environment.getExternalStorageState())) {
        return true;
    } else {/*from ww  w  . ja v  a 2  s  .  co  m*/
        return false;
    }
}

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;
    }/*  w w w  . j  av a2s . c om*/
    return false;
}

From source file:Main.java

private static boolean existSDCard() {
    if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) {
        return true;
    } else//from   w  ww. j a va2 s  .c  o  m
        return false;
}

From source file:Main.java

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

From source file:Main.java

public static String getInternalStorage() {
    if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()))
        return Environment.getExternalStorageDirectory().getAbsolutePath();
    return "";
}

From source file:Main.java

public static boolean isSDCardExist() {
    if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) {
        return true;
    }//w w  w  . j  av  a2s. c om
    return false;
}