//判断SD卡是否存在
1 Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);
2 File file = Environment.getExternalStorageDirectory();
//拍照
1 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); 2 startActivityForResult(intent, TAKE_PICTURE);