is Have SD Card - Android Hardware

Android examples for Hardware:SD Card

Description

is Have SD Card

Demo Code


//package com.java2s;

import android.os.Environment;

public class Main {

    public static boolean isHaveSDCard() {
        String status = Environment.getExternalStorageState();
        return status.equals(Environment.MEDIA_MOUNTED);
    }//from  w ww .ja v a2s. co m
}

Related Tutorials