I wish to use the front camera of a device to capture the image without any preview and the screen to remain blank.
I have a way to remotely activate this but not sure how to do it.
I found this: https://stackoverflow.com/questions/10702906/showing-blank-screen-while-recording-video-in-motorola-attrix-2-with-android-2-2.
It is pretty close to what I want but I'm not sure how to use the code and change it to camera.
Related
I'm using an AVD on Android Studio. The app I'm using performs verification, first taking a photo with the back camera, and then switching to the front camera to take a selfie. But the problem I'm having is that I can't seem to use both cameras. Whichever one I don't assign "webcam0" shows a black screen. To get the front facing camera to work for the selfie, I need to assign "webcam0" and either "emulate" or "virtualscreen" to the back. But then the back camera doesn't work.
How do I get both to work? I really need to be able to take a photo with the front and back camera. Thanks in advance for your help!
I want to close the camera shutter and then take a blind image. Is it possible in android.
In general the shutter opens, the sensor is exposed, shutter closes and then we get the image. I want to change this sequence. I want the shutter to remain close permanently and still I should be able to get images. Is it possible in android?
If the shutter is close, you will get a complete black image. So you may construct such a black image yourself in your code.
In my application, i want to take picture using built-in camera application. Taking picture process is working fine. I want to know is picture taken from front camera or back camera, because after taking picture i want to get the rotation angle and rotate the picture to that angle and store it in sdcard. ExifInterface always return the same angle(90) rather user take the picture from front/back camera. When user take the picture from back camera, rotation is fine but when user take the picture from front camera, picture rotation is wrong. Please suggest any solution for this problem.
Thanks
I believe that your device does something wrong with the rotation flag. You should try other devices, too.
Note that MediaStore.ACTION_IMAGE_CAPTURE may be fulfilled by different Camera apps on different devices, or even on the same device: the end user is free to choose. Some downloaded applications will respect an extra to choose the front camera (see https://stackoverflow.com/a/11159760/192373), other won't. Some will do a better job to provide correct EXIF, others will mess it up.
In my app, I'm using the built-in camera app to take pictures.
The thing is that this interface has a button to change camera ( to front) and when I take a picture with front picture, it is not working anymore.
So, Is there a way to take picture fromt front camera with built-in camera app.
If it is not posible, is there a way to remove the icon from built in app???
Any suggestion will be appreciated!
In a part of an app I'm building the user should take an image / pick one from the gallery. The thing is, the image must be oriented horizontally. I would like to show the user a hint on-screen to flip his device if he is holding it in portarit, like google is doing in their new camera app (only in video mode, though)
Is it possible to do this without creating my own camera activity? I'm currently using ACTION_IMAGE_CAPTURE intent to open the default camera.
Eventually, I've built my own camera application which detects rotation and hints the user to rotate the device if it's in portrait mode.