Select image iphone simulator using phonegap camera api

Posted by udhaya on Stack Overflow See other posts from Stack Overflow or by udhaya
Published on 2010-03-26T12:18:33Z Indexed on 2010/03/26 12:23 UTC
Read the original article Hit count: 618

Filed under:
|
|
|
|

I'm new to Xcode and iPhone apps. I want to select an image from iPhone (camera or library) and send to php via ajax.

http://wiki.phonegap.com/iPhone:-Camera-API

I'm using the phonegap framework, Xcode iPhone SDK version 3.1.x. On clicking button it calls function with parameter 0 or 1, but it does not initialize camera or display the library.

I used the same code as in the above link.

it shows this error in debug console: 2010-03-25 23:36:02.337 PhoneGap[7433:207] Camera.getPicture: Camera not available.

simulator dsnt have camera, but photos(from library) also not wokring!

what might be the error? i think when using navigator.camera.getPicture first check for camera and if not break and shws error ~?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about phonegap