How to open native camera in ibm worklight

前端 未结 2 2066
一整个雨季
一整个雨季 2021-01-15 04:17

Ibm Worklight have samples that calling the native app, but that was created in worklight itself eg: module_09_1_Android_CombiningNativeAndWebPages in this sample in android

2条回答
  •  滥情空心
    2021-01-15 04:22

    Why write code that will work on Android and not on iPhone? Worklight uses PhoneGap, so you can use camera.getPicture and get to your application the image taken with the camera as base64.

    navigator.camera.getPicture( cameraSuccess, cameraError, [ cameraOptions ] );
    

    See PhoneGap documentation for more information (http://docs.phonegap.com/en/1.0.0/phonegap_camera_camera.md.html).

提交回复
热议问题