in my application I want to use a camera to capture an image and send it to a server.
When a user opens a part of the camera of my application, I want to show him the default camera of the device that he uses. Currently, the following are two string codes that I use to capture an image
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, TAKE_RECEIPT);
When I run this code on an HTC device, after capturing the image, it showed a preview of the image using the done and retake buttons . When I click done , it goes to the previous action.
when I use the code in a moto device, after capturing the image, it showed a preview of the image by inserting, returning and canceling . When I click done , it goes to the previous action.
Similarly, it will be different for all devices. Therefore, when I press the done or insert button or any other button with a positive position on all devices that I want to start the boot process.
How to do this, please help me ....
source
share