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,521
  • 2
  • 24
  • 58
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,217
  • 4
  • 37
  • 56