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 {
    /**
     * Return if the state of the media is Mounted
     * 
     * @return boolean if a SD is mounted on the device
     */
    public static boolean isMediaMounted() {
        return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);
    }
}