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.
Related
Whenever I take a screen capture on my Pixel (I take several each day), the system gives me a "helpful" notification that the screenshot was captured. This is a terrible user experience for me since it stops my music, dings, and then shows an alert that I have to dismiss. I trust the system to actually take the screenshot. ...but it doesn't seem to be a notification that I'm able to disable since it is at the system level.
Anybody figure out how to disable this unnecessary notification? Is it just a bug that it can't be disabled?
To reproduce: if you want to take a screen capture hold down the power and down-vol at the same time until the shot is captured, then wait for the little animation and shutter sound letting you know it was captured. After that, you'll get the redundant ding and notification card.
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.
I have a requirement in android application where i want to turn off screen when no motion has been detected(Motion detection is done using camera).
But the camera should be running in background and taking pictures while the screen is off and as soon as the motion is detected then the screen should be turned on.
How can i do that in android?
I have searched a lot and implemented few things but could not achieve the desired result.
Please help me out.
I don't think this is possible. To take a picture the Camera class needs the SurfaceHolder and it needs to draw the frame on the screen for the capture to work.
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.
I'm working on an android app using the camera, and the only means of focusing the image I've found requires the use of the built-in auto-focus. Its functionality is great when you're looking to take a picture, but when you're working with video it's a whole other story.
Is there a way to repeatedly adjust the focus without having to completely re-set the current focus?
See this.
edit
Not that I believe the site will go away anytime soon, but just in case:
public static final String FOCUS_MODE_CONTINUOUS_VIDEO
Continuous auto focus mode intended for video recording. The camera continuously tries to focus. This is ideal for shooting video. Applications still can call takePicture(Camera.ShutterCallback, Camera.PictureCallback, Camera.PictureCallback) in this mode but the subject may not be in focus. Auto focus starts when the parameter is set. Applications should not call autoFocus(AutoFocusCallback) in this mode. To stop continuous focus, applications should change the focus mode to other modes. Constant Value: "continuous-video"