destoryBimap(); String state = Environment.getExternalStorageState(); if (state.equals(Environment.MEDIA_MOUNTED)) { intent = new Intent("android.media.action.IMAGE_CAPTURE"); startActivityForResult(intent, cameraCode); } else { Toast.makeText(SsActivity.this,"请插入SD卡", Toast.LENGTH_LONG).show(); } break;
判断有没有SD卡。没有就提示插入SD卡。接受返回值任然实在ResultActivity