incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon MacDonald (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-457) Camera api crash and Capture api not working with HTC desire s
Date Sat, 07 Apr 2012 23:02:15 GMT

    [ https://issues.apache.org/jira/browse/CB-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249404#comment-13249404
] 

Simon MacDonald commented on CB-457:
------------------------------------

Even when you get your hands on the device you are not going to be able to fix this. A HTC
Desire S has a 5 MP camera taking photos in a resolution of 2592 x 1944. Even at quality 10,
which doesn't change the resolution, the resulting Base64 encode data being returned from
Java to JavaScript will cause the application to throw an out of memory error.

If I were you guys I would mark this one as "won't fix" and tell the guy to switch to FILE_URI
destination type or tell him to specify a width and height for the picture as that'll cut
down on the amount of memory needed.
                
> Camera api crash and Capture api not working with HTC desire s
> --------------------------------------------------------------
>
>                 Key: CB-457
>                 URL: https://issues.apache.org/jira/browse/CB-457
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0
>            Reporter: Hardeep Shoker
>            Assignee: Joe Bowser
>            Priority: Minor
>
> Cross post from:
> http://community.phonegap.com/nitobi/topics/help_camera_and_capture_api_not_working_with_htc_desire_s?utm_content=topic_link&utm_medium=email&utm_source=new_topic
> =====================================
> I have recently got a new HTC Desire S and tried to use an existing application that
works fine on my older HTC Desire. With the new HTC the application crashes after a photo
is taken using the camera api but works fine with the older HTC. The code I use is:
> var options = { quality: 10,
> destinationType : Camera.DestinationType.DATA_URL };
> MycLog.dbg ('*** TAKE OLD PHOTO')
> navigator.camera.getPicture(MycPhoto.photoTaken,
> MycPhoto.photoFailed, options);
> So I tried changing to use the capture API. Again this works correctly on my older HTC
but does not work on the newer HTC. With the newer HTC it does not crash but instead calls
back the failure-callback with the error error capturing image. The code I use is:
> MycLog.dbg ('*** TAKE NEW PHOTO')
> navigator.device.capture.captureImage(MycPhoto.photoTakenNew, MycPhoto.photoFailed,
> { limit:1 });
> I've tried various build preferences (1.1.0 to 1.5.0) just in case - all with the same
effect.
> If it helps the phone builds are:
> (Android 2.3.5 HTC Desire S Build/GRJ90) AppleWebKit/533.1
> (Android 2.2.2 HTC Desire Build/FRG83G) AppleWebKit/533.1) 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message