Skip to content Skip to sidebar Skip to footer

How To Open Camera Only In A Fragment

Following code opens camera but covers complete screen, and after capturing image it returns to the fragment No signs of clicked image. ( image is safely saved in gallery. I want

Solution 1:

Following code opens camera but covers complete screen

Sure. You are launching a third-party camera app, and those usually take over the foreground.

I want to open camera ONLY IN FRAGMENT part.

Write your own camera code from scratch, using android.hardware.Camera and/or the android.hardware.camera2.* set of classes. You cannot launch a third-party camera app into a fragment.

Post a Comment for "How To Open Camera Only In A Fragment"