Created
August 7, 2013 04:58
-
-
Save kernelhcy/6171308 to your computer and use it in GitHub Desktop.
Android中调用相机拍照
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intent itb = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); | |
itb.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(capturePicFile)); | |
startActivityForResult(itb); | |
//设置MediaStore.EXTRA_OUTPUT可以获取原始大小的图片,否则,相机仅仅返回小图片。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment