is SD Card Exist - Android Hardware

Android examples for Hardware:SD Card

Description

is SD Card Exist

Demo Code


//package com.java2s;

import android.os.Environment;

public class Main {
    public static boolean isSDCardExist() {
        return Environment.MEDIA_MOUNTED.equalsIgnoreCase(Environment
                .getExternalStorageState());
    }//from  w ww  .ja  va 2s  . co  m
}

Related Tutorials