Strange behaviour of Android debugger in Eclipse when using Camera for preview.
Posted
by Buzzy
on Stack Overflow
See other posts from Stack Overflow
or by Buzzy
Published on 2010-04-05T14:15:23Z
Indexed on
2010/04/05
14:23 UTC
Read the original article
Hit count: 198
Hi,
I have an Android application that uses a SurfaceView subclass and Camera object to preview images before capture. Once I capture an image, I stop the preview and release the camera.
Execution stops at any breakpoint after this. However, apart from the "Suspend" and "Terminate" icons, the rest are disabled. This is strange because the "Debug Current Instruction Pointer" is clearly at the said breakpoint and execution is already suspended.
I can't perform any debugging operations and have no option but to terminate the session. Sometimes (very rarely), the session terminates by itself.
I can confirm that this odd behavior takes place only after I preview the camera capture.
I am fairly new to Android development. Is there some obvious mistake I am making? Any help would be highly appreciated.
© Stack Overflow or respective owner