Tag: android sdcard

尝试使用HTML,Javascript和Phonegap打开Android SD卡

我正在尝试打开SD卡并使用Phonegap在Android上传文件。 下面是我将SD卡内容附加到我的HTML的代码,但没有显示任何内容。 我正在使用cordova.js , jquery1.7.1.js 。 以下是我的代码: 我的Javascript: function onDeviceReady() { getFileSystem(); } function getFileSystem() { window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem) { // success get file system root = fileSystem.root; listDir(root); }, function(evt) { // error get file system console.log(“File System Error: “+evt.target.error.code); } ); } function listDir(directoryEntry) { if (!directoryEntry.isDirectory) console.log(‘listDir incorrect type’); $.mobile.showPageLoadingMsg(); // show […]