Android take picture, crop picture, select picture by using intent
Take Picture public static Uri takePhoto( Activity act ) { //Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); //act.startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST); Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); Uri mImageCaptureUri = Uri.fromFile( new File( Environment.getExternalStorageDirectory(), "tmp_contact_" + String.valueOf(System.currentTimeMillis()) + ".jpg") ); cameraIntent.putExtra( android.provider.MediaStore.EXTRA_OUTPUT, mImageCaptureUri ); try { cameraIntent.putExtra( "return-data", true); act.startActivityForResult(cameraIntent, PICK_FROM_CAMERA); } catch( ActivityNotFoundException e ) { } return mImageCaptureUri; } Crop Picture @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { // TODO Auto-generated method stub super.onActivityResult(requestCode, resu