安卓摄像头的意图:如何获得全尺寸的照片?
Intent cameraIntent = new Intent( android.provider.MediaStore.ACTION_IMAGE_CAPTURE);getParent().startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);
Bitmap thumbnail = (Bitmap) data.getExtras().get("data");photoImage.setImageBitmap(thumbnail);photoImage.setVisibility(View.VISIBLE);
Camera.PictureCallback()
public void onActivityResult(int requestCode, int resultCode, Intent data) { Uri uri = data.getData(); imageView.setImageURI(uri);}
相关分类