Here you can find the source of sdCardIsAvailable()
public static boolean sdCardIsAvailable()
//package com.java2s; //License from project: Apache License import android.os.Environment; public class Main { public static boolean sdCardIsAvailable() { String status = Environment.getExternalStorageState(); if (!status.equals(Environment.MEDIA_MOUNTED)) { return false; }/*from www. j a va 2 s . c o m*/ return true; } }