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

public static boolean testSaveLocationExists ( ) { String sDCardStatus = Environment . getExternalStorageState ( ) ; boolean status ; if ( sDCardStatus . equals ( Environment . MEDIA_MOUNTED ) ) { status = true ; } else { status = false ; } return status ; }
determine if sd card exists .
