If you make the Camera its own Activity and set it to call after the progress window terminates, then you shouldn't have a problem. If you're trying to do it all in one Activity, you might have an issue.
The Camera API is very loose when it comes to timing constraints as it appears (without having looked at the OS) that running the camera gives real-time performance constraints on the OS to drop almost everything and make it happy. Without knowing what you're trying to do, it's kinda hard to get into detail. But if you are relying on non-documents Camera API calls to get things working, you're setting yourself up for disaster I imagine. On Nov 18, 11:11 am, Jon Webb <[EMAIL PROTECTED]> wrote: > I'm having a hard time starting a camera preview after a long delay > (several seconds) while my program initializes. > I've experimented with various methods of starting the camera preview > but no matter how I do it, the screen is black until I stop and resume > the program (i.e. go to the main screen on my GPhone and then back to > the program). Then the camera preview works normally. > I'm following the Camera application in the source tree as a guide to > setting up the camera preview. I can start the preview immediately > when my program starts and then everything works normally. But I want > to show a progress window while my program initializes and only switch > to the camera preview when everything is ready. If I try to do this, I > can't get the camera preview running.-- or rather, LogCat shows the > camera preview starting but nothing is shown on the screen of my > GPhone > I've verified that the calls to the camera, setting the preview > display, etc. are the same when the camera preview works and when it > doesn't work. It appears that the only difference between the working > and non-working situations are the long delay between the time my > program gets control and when it starts to preview. > Is there some trick to getting the camera going that I don't know > about? The Camera app doesn't quite do the same thing -- it starts > right away -- so this doesn't answer my question. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

