<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Luego podemos usar la siguiente función:
private boolean isSDCARDMounted() {
String status = Environment.getExternalStorageState();
if (status.equals(Environment.MEDIA_MOUNTED))
return true;
return false;
}String status = Environment.getExternalStorageState();
if (status.equals(Environment.MEDIA_MOUNTED))
return true;
return false;
It works!
Roger Sala,
No hay comentarios:
Publicar un comentario