Created
August 7, 2013 05:05
-
-
Save kernelhcy/6171351 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(); | |
itb.setType("image/*"); | |
itb.setAction(Intent.ACTION_GET_CONTENT); | |
itb.putExtra("crop", "true"); //选择后对图片进行剪裁 | |
itb.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(capturePicFile)); | |
startActivityForResult(itb, GET_IMAGE_FROM_LOCAL); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment