Java tutorial
//package com.java2s; import android.annotation.SuppressLint; import android.os.Build; import android.os.Environment; public class Main { @SuppressLint("NewApi") @SuppressWarnings("rawtypes") public static boolean isExtStorageEmulated() { if (Build.VERSION.SDK_INT >= 11) { return Environment.isExternalStorageEmulated(); } return false; } }