Quote:public static String getExternalStorageState (File path) Added in API level 21 Returns the current state of the storage device that provides the given path. Returns one of MEDIA_UNKNOWN, MEDIA_REMOVED, MEDIA_UNMOUNTED, MEDIA_CHECKING, MEDIA_NOFS, MEDIA_MOUNTED, MEDIA_MOUNTED_READ_ONLY, MEDIA_SHARED, MEDIA_BAD_REMOVAL, or MEDIA_UNMOUNTABLE. public static String getExternalStorageState () Added in API level 1 Returns the current state of the primary "external" storage device. Returns one of MEDIA_UNKNOWN, MEDIA_REMOVED, MEDIA_UNMOUNTED, MEDIA_CHECKING, MEDIA_NOFS, MEDIA_MOUNTED, MEDIA_MOUNTED_READ_ONLY, MEDIA_SHARED, MEDIA_BAD_REMOVAL, or MEDIA_UNMOUNTABLE. See Also getExternalStorageDirectory()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)