2.2 SDK를 사용하여 BlackBerry PlayBook os 2.0에서 FileTransfer 메소드를 호출 할 때 오류가 발생합니다. PhoneGap 1.4.0을 사용하고 있으며 내 응용 프로그램은 장치에서이 부분을 제외하고 훌륭하게 작동합니다. 이것은 테스트를 위해 사용하고있는 테스트 함수입니다.PhongGap 플레이 북 FileTransfer
test(){
var myfile = new FileTransfer();
myfile.download(
'http://www.waterhobo.com/icancolor/html/images/galley2.gif',
"file:///accounts/1000/shared/photos/test.png",
function(result) { console.log("download complete: " +
result.fullPath);},
function(error) {
console.log("download error source " +
error.source);
console.log("download error target " +
error.target);
console.log("upload error code" +
error.code);
}
);
}
내가 점점 오전 오류는 다음과 같습니다가 phonegap.js 파일의 방법을 찾을 수없는 것처럼
Error: Status=2 Message=Class FileTransfer cannot be found
book.js:152download error source undefined
book.js:153download error target undefined
book.js:154upload error codeundefined
book.js:514
이 나타납니다,하지만 난이 확인했습니다.
config.xml 파일은 다음과 같습니다
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:rim="http://www.blackberry.com/ns/widgets"
version="1.0.1.0">
<name>iCanColor</name>
<description>
A child Activity
</description>
<license href="http://opensource.org/licenses/alphabetical">
</license>
<!-- PhoneGap API -->
<feature id="blackberry.system" required="true" version="1.0.0.0" />
<feature id="com.phonegap" required="true" version="1.0.0" />
<feature id="blackberry.find" required="true" version="1.0.0.0" />
<feature id="blackberry.identity" required="true" version="1.0.0.0" />
<feature id="blackberry.pim.Address" required="true" version="1.0.0.0" />
<feature id="blackberry.pim.Contact" required="true" version="1.0.0.0" />
<feature id="blackberry.io.file" required="true" version="1.0.0.0" />
<feature id="blackberry.utils" required="true" version="1.0.0.0" />
<feature id="blackberry.io.dir" required="true" version="1.0.0.0" />
<feature id="blackberry.app" required="true" version="1.0.0.0" />
<feature id="blackberry.app.event" required="true" version="1.0.0.0" />
<feature id="blackberry.system.event" required="true" version="1.0.0.0"/>
<feature id="blackberry.widgetcache" required="true" version="1.0.0.0"/>
<feature id="blackberry.media.camera" />
<feature id="blackberry.ui.dialog" />
<!-- PhoneGap API -->
<access subdomains="true" uri="file:///store/home" />
<access subdomains="true" uri="file:///SDCard" />
<access subdomains="true" uri="file:///accounts/1000/shared/photos" />
<!-- Expose access to all URIs, including the file and http protocols -->
<access subdomains="true" uri="*" />
<access subdomains="true" uri="http://www.waterhobo.com" />
<icon rim:hover="false" src="resources/icon.png" />
<icon rim:hover="true" src="resources/icon_hover.png" />
<rim:loadingScreen backgroundColor="#000000"
foregroundImage="resources/loading_foreground.png"
onFirstLaunch="true">
<rim:transitionEffect type="fadeOut" />
</rim:loadingScreen>
<content src="index.html" />
<author href="http://www.msn.com/" rim:copyright="Copyright 1998-2012"></author>
<rim:orientation mode="portrait" />
<rim:permissions>
<rim:permit>use_camera</rim:permit>
<rim:permit>read_device_identifying_information</rim:permit>
<rim:permit>access_shared</rim:permit>
<rim:permit>read_geolocation</rim:permit>
</rim:permissions>
</widget>
누구나 어떤 생각을 가지고?
감사
팀