Friday, February 10, 2012

How to make sure the SD card is present through code of android device?

Sometimes you want to make sure the hardware is there... 
if (android.os.Environment.getExternalStorageState().equals( 
android.os.Environment.MEDIA_MOUNTED)){
//true
}

No comments:

Post a Comment