Added directoryManager for android

This commit is contained in:
addios
2009-02-26 11:50:11 +07:00
parent a7f45f18d6
commit aba625b6a9
9 changed files with 101 additions and 2 deletions
+24 -1
View File
@@ -306,7 +306,30 @@ var Device = {
get: function(url, file) {
window.DroidGap.httpGet(url, file);
}
}
},
storage: {
result: "",
testSDCard: function(){
Device.storage.result = window.DroidGap.testSaveLocationExists();
return Device.storage.result;
},
testExistence: function(file){
Device.storage.result = window.DroidGap.testDirOrFileExists(file);
return Device.storage.result;
},
delFile: function(file){
Device.storage.result = window.DroidGap.deleteFile(file);
return Device.storage.result;
},
delDir: function(file){
Device.storage.result = window.DroidGap.deleteDirectory(file);
return Device.storage.result;
},
createDir: function(file){
Device.storage.result = window.DroidGap.createDirectory(file);
return Device.storage.result;
}
}
}
function gotLocation(lat, lon) {