On Wed, Aug 11, 2010 at 10:25 AM, Pedro Teixeira
<[email protected]> wrote:
> Hi there,
>
> I have a cameraView class which shows me the Cam View with a button
> placed on the corner.
> Once I click that button I'd like to go to another activity which also
> contains the camera view but some other properties. My code is giving
> me an undetectable error. I'm not sure what to do. Here is the
> cameraView class and the thenNnowMode.class which my intent is calling
> is exactly the same ... but will load a picture in front of the camera
> view instead of having a button. Anyway, is there something I should
> do with the cam before moving to another activity that uses cam?

You should really reconsider whether you should be moving to another
activity, rather than implementing all camera-related features in the
one activity. Normally, I am a fan of lots of small activities, but
the Camera does not appear to work well in that pattern, based on
other questions posted to this list and elsewhere.

If you stick with your current plan, you will need to release the
Camera object in the first activity and open it again in the second
activity.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 2.2 Programming Books: http://commonsware.com/books

-- 
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

Reply via email to