Checking if SDCard is mounted on Android

public static boolean isSdPresent(){ return android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED); }
Simple function that checks if a SDCard is mounted

#function #sdcard #mount #android

#cesarnog

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.