0

//Opening camera

    Intent cameraIntent = new  Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
    startActivityForResult(cameraIntent, 1888);
    //Setting Image
       if (requestCode == 1888 && resultCode == RESULT_OK) {
                imageView.setImageBitmap(photo);
}
Sreehari
  • 5,621
  • 2
  • 25
  • 59
Pankaj Kumar
  • 71
  • 1
  • 1
  • 10

1 Answers1

0

@Duplicate

You can see this marked answer here com.android.camera.action.CROP is the key , you can search more and use default cropper.

You can do this method both Gallery and Camera. You just need Uri of photo..

Community
  • 1
  • 1
Yasin Kaçmaz
  • 6,573
  • 5
  • 40
  • 58