has SD Card installed - Android android.os

Android examples for android.os:SD Card

Description

has SD Card installed

Demo Code

import android.os.Environment;

public class Main {

  public static boolean hasSDCard() {
    String status = Environment.getExternalStorageState();
    return status.equals(Environment.MEDIA_MOUNTED);
  }/*from  w  w w.j  a va  2  s. co m*/

}

Related Tutorials