is Sd Card Exist - Android Phone

Android examples for Phone:Phone Information

Description

is Sd Card Exist

Demo Code


//package com.java2s;

public class Main {

    public static boolean isSdCardExist() {
        return android.os.Environment.getExternalStorageState().equals(
                android.os.Environment.MEDIA_MOUNTED);
    }//from w ww . j  a va 2 s . c o  m
}

Related Tutorials