Intent imageCaptureIntent = new Intent(
MediaStore.ACTION_IMAGE_CAPTURE);
// 重新分解图片名称将-:的符号去掉
//
File out = new File(PHOTO_DIR, "1.jpg");
Uri uri = Uri.fromFile(out);
//
imageCaptureIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
imageCaptureIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);
startActivityForResult(imageCaptureIntent, CAMERA_WITH_DATA);
照着这个写,你敢不给分!。。。