Hello all,
creating very basic camera code I got stuck at this: in followin code
method onPictureTaken() is never being called:
private PictureCallback pcb = new PictureCallback() {
@Override
public void onPictureTaken(byte[] data, Camera camera) {
// Do something here - this place is never
reached
}
};
Camera c = Camera.open();
Parameters cp = c.getParameters();
int JPEG = 0x100;
cp.setPictureFormat(JPEG);
c.setParameters(cp);
c.takePicture(null, null, pcb);
c.release();
Have you met this behavior before? If so, how to overcome this?
Behavior is consistent in emulator and in real hardware, versino is
2.1.
Thanks for reading this.
--
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