public boolean hasSDCard() {
return android.os.Environment.getExternalStorageState()
.equals(android.os.Environment.MEDIA_MOUNTED);
}
Java code to check sdcard exsist in android device [duplicate]
-
19-10-2022 - |
Pregunta
I am developing an android application and I need to know how could i check if the sdcard exist or not before exporting a file to it , so that i could notify the user that the sdcard is or isn't mounted.
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow