Here you can find the source of isSdcardAvailable()
public static boolean isSdcardAvailable()
//package com.java2s; import android.os.Environment; public class Main { /**//from w ww .jav a2s.c om * if sdcard available return true ,else return false * */ public static boolean isSdcardAvailable() { String sdcardStatus = Environment.getExternalStorageState(); return sdcardStatus.equals(Environment.MEDIA_MOUNTED) ? true : false; } }