On Tue, Sep 7, 2010 at 2:22 PM, paladin <[email protected]> wrote: > I have one activity call a camera view activity, and in the > onActivityResult, I have it start that activity again with different > parameters. Android doesn't seem to like that, and gives me an error > that the camera is not available if I start it right after it returns. > I tried just waiting a few seconds, but this doesn't seem to work on > all phones, and it sometimes crashes. Is there some way to wait until > that activity finishes properly, and gives up all resources?
I'd try to avoid doing what you're doing. Move your decision-making into the camera-using activity, so you can invoke it once and have it complete everything. Lacking that, try stopping the preview (if it is running) and calling release() on the Camera before you call finish() to close up the activity. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- 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

