> I am not familiar with the semantics of some of the constructions that
> you use, but your use of AsyncTask() makes me wonder if you have
> safeguarded (e.g. copied) the image data[] by the time that
> onPictureTaken() returns, because image data[] has no guaranteed
> lifetime beyond that.

Now that's an interesting point. I think my crash happens before then,
though, but it's something I should take care of. I'll give this a shot in
the next day or two.

> I would also not have put the camera.startPreview() preview restart
> inside the onPictureTaken() callback, because typically one is not
> allowed to put system-related function calls inside callbacks.

Every line of code in every Android application is inside *some* callback.
onCreate() is a callback. onClick() is a callback. And so on. Hence, it is
impossible *not* to call camera.startPreview() from a callback, AFAICT. Or
am I missing something?

Thanks!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


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