[ https://issues.apache.org/jira/browse/CB-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249588#comment-13249588 ]
Hardeep Shoker commented on CB-457: ----------------------------------- Okay great, thanks for the information and I'm satisfied with this answer. > 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