Code to tap anywhere on screen to take photo - android

Does anyone know how I could code for a camera function that to take the picture the user just has to tap anywhere on the screen? I am writing the app with Phonegap in Android.
Thanks!

When you execute the navigator.camera.getPicture() method you are firing off the Intent to start the Android Camera. The Camera provides the UI to take the picture so you'll need to use their shutter button.
If you want to do the click anywhere functionality you'll need to write a plugin to provide your own camera functionality.

Related

open camera with very small preview window and automatically takes picture- android

I'm working on a application and i want to take the picture of the user automatically with front camera without opening the camera or with a little preview.I can take the picture but the user have to click the button but what I want is it takes picture automatically. I've searched a lot about this but I was unable to get some useful tutorial or code.I
Using the camera API you can achieve this.
Look at this like http://www.vogella.com/tutorials/AndroidCamera/article.html

Take images without closing camera in Android

I want to develop camera functionality for my app where I have to capture 10 images. The camera should not close, rather it should continuously take pictures while I hold the shutter button. I am using intent for opening the camera, but after taking one image the camera is stopping. How can I achieve the desired functionality?
You would need to write your own camera code, using android.hardware.Camera and/or the android.hardware.camera2.* classes. There is no Intent structure that camera app developers are required to support that handles your use case.

Android ACTION_IMAGE_CAPTURE auto focus on take picture

We were using Camera API for our custom camera application. However, it turned out to be a very hard problem. Many devices required extra testing as they seemed to perform unexpected behaviors. So, we have decided to migrate to Android's camera intent.
However, we are dealing with image retrieval tasks so, we don't want our users to send us blurry pictures. Previously, we were using autofocus as user taps on take picture button. Android camera intent performs worse than ours because it does not try to autofocus just before taking the picture. Android's camera does have such option but we don't want leave that decision up to our users because, they will probably will not select that option.
Is it possible to launch the camera intent with the option which auto focusses just before taking the picture? Thank you!
Is it possible to launch the camera intent with the option which auto focusses just before taking the picture?
No. The decision of whether or not to use auto-focus, or a flash, or any other camera feature, is between the user and the developers of the camera app. You do not get a vote.

Android App Custom camera

I made a custom camera and now functioning. All I want is if the user click the camera or any related that call the camera, it will appear on the screen which camera want to be used? the default camera or my custom camera, its just like that.
example: the latest update of My Tracks has a feature to select a camera. Now if the user click the camera icon, the choices will popup to select which camera want to be use for capturing images....any help will be appreciated...thanks
As SMR mentioned put intent filter with (MediaStore.ACTION_IMAGE_CAPTURE) action. But it is use full if other application use this intent for image capture not its own camera implementation. Please refer using existing camera app to implement proper behavior.

How to get current frames as image from camera?

Hello im trying to make my own special custom code scanner. My app's render a special custom barcode and I need to make a very simple scanner that will take whats currently being seen with the camera and quickly process it to decode the barcode. So how can I grab the frames from the camera and use them as images without pressing the "take" button.
check the open source project. It give bar-code without click take photo button.
Link
Thanks

Categories

Resources