incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hardeep Shoker (Created) (JIRA)" <>
Subject [jira] [Created] (CB-457) Camera api crash and Capture api not working with HTC desire s
Date Sat, 07 Apr 2012 10:25:15 GMT
Camera api crash and Capture api not working with HTC desire s

                 Key: CB-457
             Project: Apache Callback
          Issue Type: Bug
          Components: CordovaJS
    Affects Versions: 1.5.0, 1.4.0, 1.3.0, 1.2.0, 1.1.0
            Reporter: Hardeep Shoker
            Assignee: Filip Maj
            Priority: Minor

Cross post from:


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'),
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:!default.jspa
For more information on JIRA, see:


View raw message