Right now, the answer is no. Most cameras require that you go to preview mode before you can take a picture so that the image processor can grab some frames for auto-focus, white balance, etc.
I'll see if we can get a change into Cupcake that allows you to start preview without a surface. That should allow you to do what you want. It will be some time though before this feature will appear on devices in the field. The other thing you need to bear in mind is that the camera eats a LOT of power. You don't want to run it for long periods of time in background. I forget what the power numbers are on the G1, but I bet when if kept fully spun-up it will drain the battery in a couple of hours. On Jan 21, 9:28 am, Pascal Merle <pmerl...@googlemail.com> wrote: > Please also try to address my last question "Can this be done from > within a service (no activity)?". Since a service does not have a UI I > don't see how I can start a preview from there. I want to take the > picture from the service running in the background. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---