に動作しないばかり我々は、我々はこの画像はギャラリーからのPhoneGap
var pictureSource; // picture source
var destinationType; // sets the format of returned value
document.addEventListener("deviceready",onDeviceReady,false);
function onDeviceReady() {
alert("ondevicereday");
pictureSource=navigator.camera.PictureSourceType;
destinationType=navigator.camera.DestinationType;
}
function onPhotoDataSuccess(imageData) {
alert("Open");
var smallImage = document.getElementById('smallImage');
smallImage.src = "data:image/jpeg;base64," + imageData;
}
function capturePhoto(){
alert("justOpen");
navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 50,
destinationType: destinationType.FILE_URI,
sourceType: Camera.PictureSourceType.PHOTOLIBRARY });
}
function onFail(message) {
alert('Failed because: ' + message);
}
ように試みたが、我々はgallery.Whenページを開くことができない、我々は我々のアプリにプラグインを追加した画像形式のGallery.Soを取得する必要があるが、「ondevicereday
をロード「そして、我々はそれがjustOpen
アラートを見せてopenGallery
ボタンをクリックしますが、我々は を開くことができない示す警告だから私たちに案内し、私はコルドバ、ファイルAPIのこの使用してファイルのAPIプラグインをimpalmentedしたコードで何が間違って
エラートレース? – Gandhi
'onPhotoURISuccess'に' onPhotoDataSuccess'の名前を変更してください – Akis
@Naveen Doddaさんは解決することができましたか? – IamKarim1992