我正在检查PhoneGap API for android,并试用了相机示例应用程序示例。
我使用phonegap 1.8.1和我的android版本是2.3.5。Phonegap - Android - 相机API不工作
我想从我的 应用程序调用navigator.camera.getPicture()
函数,但没有任何反应。
我已经包含正确的.js
文件和其他依赖项。
我能错过什么?
function capturePhotoURI() {
navigator.camera.getPicture(onCapturePhotoURISuccess, fail,
{ destinationType: Camera.DestinationType.FILE_URI, quality: 50 });
}
我有类似的问题,但我解决了这个问题。我已经在此主题上发布了我的答案。请检查下面的链接:http://stackoverflow.com/questions/18690388/phonegap-cordova-3-0-0-navigator-camera-is-undefined/26875054#26875054 – PrishahCoder