I’ve whipped out an app using the sample code in Take Pictures Simply, but all it does is start the camera app, at which point I still have to press the take picture button and then say “yep, that picture I took was OK”. Is there anything extra I can put in the Intent to say “just go ahead and take the dadgum picture using the settings I saved the last time I was in the Camera app”?
I want to be able to trigger taking the picture remotely and I’d rather not build a whole camera app from the ground up.
No, because the primary point behind starting a camera app via
Intentis that the user can then use the preview on the screen to line up a shot. It’s possible there are some third-party camera apps that might support someIntentextra for an automatic shot, but it is not part of the standardACTION_IMAGE_CAPTUREprotocol, and you cannot count on any given camera app supporting it. Also, bear in mind that the user might have more than one camera app installed, which means a chooser, not the camera app, will appear when you callstartActivity().If you want to control the actual taking of the picture, you will have to write something using the
Cameraclass.