首页 > 代码库 > android调用系统相机

android调用系统相机

Intent intent = new Intent();                intent.setPackage("com.android.camera");                intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);                startActivityForResult(intent, 1);

 

                Intent intent = new Intent();                intent.setPackage("com.android.camera");//                intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);                startActivityForResult(intent, 1);

 

Intent imageCaptureIntent = new Intent("android.media.action.STILL_IMAGE_CAMERA");                startActivityForResult(imageCaptureIntent,1);

android调用系统相机