Example usage for android.os Environment getExternalStorageDirectory

List of usage examples for android.os Environment getExternalStorageDirectory

Introduction

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

Prototype

public static File getExternalStorageDirectory() 

Source Link

Document

Return the primary shared/external storage directory.

Usage

From source file:Main.java

public static String getSdCardPath() {
    return Environment.getExternalStorageDirectory().getPath();
}

From source file:Main.java

public static String getSDCardPath() {
    return Environment.getExternalStorageDirectory().getPath();
}

From source file:Main.java

public static String getSdcardPath() {
    return Environment.getExternalStorageDirectory().getPath();
}

From source file:Main.java

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

From source file:Main.java

public static boolean existSDCard() {
    if (!Environment.getExternalStorageDirectory().equals(Environment.MEDIA_MOUNTED)) {
        return true;
    } else {// w  w  w . java 2s. c  o m
        return false;
    }
}

From source file:Main.java

public static String getEnviromentPath() {
    return Environment.getExternalStorageDirectory().getAbsolutePath();
}

From source file:Main.java

public static String getRootDirectoryPath() {
    return Environment.getExternalStorageDirectory().toString();
}

From source file:Main.java

public static String getSdcardRootDirectory() {
    return Environment.getExternalStorageDirectory().getPath();
}

From source file:Main.java

public static String getSdCardAbsolutePath() {
    return Environment.getExternalStorageDirectory().getAbsolutePath();
}

From source file:Main.java

public static File getSdcardFile() {
    return Environment.getExternalStorageDirectory();
}