Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.os.Environment;

public class Main {
    /**
     * check whether or not ExternalStorage is available
     *
     * @return true if externalStorage is available,false otherwise
     */
    public static boolean isSDCARDMounted() {
        return Environment.getExternalStorageState().contentEquals(Environment.MEDIA_MOUNTED);
    }
}