Is Sd Card ready - Android android.os

Android examples for android.os:SD Card

Description

Is Sd Card ready

Demo Code

import android.os.Environment;

public class Main {

  public static boolean IsCanUseSdCard() {
    try {//ww w.  j av  a  2s . c o  m
      return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);
    } catch (Exception e) {
      e.printStackTrace();
    }
    return false;
  }

}

Related Tutorials