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 existSDCard() {
    if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
        return true;
    } else {//from  www . j  a  va  2 s  .  c  om
        return false;
    }
}

From source file:Main.java

public static boolean checkSdCard() {
    if (Environment.getExternalStorageDirectory().equals(Environment.MEDIA_MOUNTED))
        return true;
    else/*from   w  w  w . j a  va 2s  .  co m*/
        return false;
}

From source file:Main.java

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

From source file:Main.java

public static boolean existSDCard() {
    if (!Environment.getExternalStorageDirectory().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 isSdcardAvailable() {
    return Environment.getExternalStorageState().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;
    }/* w w  w  . ja  va  2s  . c om*/
    return false;
}

From source file:Main.java

public static boolean isSDCardExist() {
    if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
        return true;
    } else {/* www . j a v a2 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  a  va 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 w w  .  j  ava 2s .  c o m
        return false;
    }
}