Here you can find the source of isExternalStorageRemovable()
private static boolean isExternalStorageRemovable()
//package com.java2s; //License from project: Open Source License import android.os.Build; import android.os.Environment; public class Main { private static boolean isExternalStorageRemovable() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) { return Environment.isExternalStorageRemovable(); }/*from w ww . j a v a2 s . c o m*/ return true; } }