Android App Development
Saturday, 6 April 2013
Android Devices-How to make sure the SD card is present?
Sometimes you want to make sure the hardware is there...
.
if
(
android
.
os
.
Environment
.
getExternalStorageState
().
equals
(
android
.
os
.
Environment
.
MEDIA_MOUNTED
)){
// SD Card is present
}
else
{
// SD card not present
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Disqus for Android
No comments:
Post a Comment