Further tests suggest that the camera crash was caused by not
capturing in G1's native 2048 x 1536 (1.3 megapixel) resolution.
However, for me 1.3 MP is terrible overkill and causing
OutOfMemoryError errors in doing image processing on the physical G1.
What are the supported camera resolutions on the T-Mobile G1? Then I
can at least temporarily hard-code a lower resolution until a
forthcoming SDK 1.x finally adds the necessary APIs for querying
supported camera resolutions (as required once more Android phones,
with different cameras, hit the market). Right now I find the Android
SDK 1.0 r1 camera support too poor for serious use.

On Oct 24, 9:22 pm, blindfold <[EMAIL PROTECTED]> wrote:
> In running my camera-based app on a real G1, the following debug
> output showed up for a JPEG takePicture call:
>
> E/QualcommCameraHardware(22797): QualcommCameraHardware::camera_cb:
> @CAMERA_EXIT_CB_FAILURE(14).
> E/QualcommCameraHardware(22797): camera cb: invalid state QCS_ERROR
> for taking a picture!
> D/CameraService(22797): postRaw
> E/Camera  (22811): Error 1
> D/CameraService(22797): postJpeg
> D/AndroidRuntime(22811): Shutting down VM
> W/dalvikvm(22811): threadid=3: thread exiting with uncaught exception
> (group=0x40013e28)
> E/AndroidRuntime(22811): Uncaught handler: thread main exiting due to
> uncaught exception
>
> What does this mean? Is it because of a camera resolution mismatch?
> (The Android API still offers no means to query for supported camera
> resolutions!) Preview is running, and the app runs fine on the SDK 1.0
> r1 emulator. What are the possible causes? I do not have a G1 myself
> so I cannot test every possible combination and play divide and
> conquer.
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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