public static boolean isSdCardMounted(){
  String status=Environment.getExternalStorageState();
  if (status.equals(Environment.MEDIA_MOUNTED))   return true;
  return false;
}

public static boolean isSdCardMounted ( ) { String status = Environment . getExternalStorageState ( ) ; if ( status . equals ( Environment . MEDIA_MOUNTED ) ) return true ; return false ; }
checks if the sd card is mounted on the device .
