I used this to check if there is an external SD card before:
public static boolean externalMemoryAvailable() {
return android.os.Environment.getExternalStorageState().equals(
android.os.Environment.MEDIA_MOUNTED);
}
but it returns true and the path of the external SD card is "/storage/emulated/0 while my test machine(Mi Note Pro) does not have external SD card.So I wonder if there are other function to check the external SD card.
Hope someone help me!Thanks!