I have made an app that uses the camera. It works on almost all
phones, except on HTC One X and Google Nexus S. Maybe there are more,
but these are the ones I have heard of (through email).
Since I have neither a One X nor a Nexus S at hand, I can't debug.
Could you think of something, that I might have made wrong?
Here is some code:
try {
camera = Camera.open();
} catch(Exception e) {
close();
return false;
}
camera.setPreviewCallback( pc );
camera.startPreview();
As you can see I only need preview data, no visible preview. From what
information I have from the feedback, no error is shown (so no
exception ocurred) but it just happens nothing... That makes me think
that the Preview Callback method (pc) never is called, because if it
were, something would happen because I'm almost 100% sure that the
processing of the data works.
One additional information: this code is executed inside a service.
Maybe this could be a problem?
I've heard that when you want to take pictures, than you have to
specify a preview surface. Is this also the case when you just want
the preview data?
What am I doing wrong?
--
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