javascript - Open file from Playbook app -
javascript - Open file from Playbook app -
my playbook app downloads zip file , opens it.
so can create air objects on playbook file i/o operations since api playbook guess hasn't been developed. example:
var file =new air.file(path);
first, document help understand layout of playbook's file system, , directories available you, developer:
http://supportforums.blackberry.com/t5/tablet-os-sdk-for-adobe-air/blackberry-playbook-file-system-layout/ta-p/773327
after that, working file can simple as:
var fs:filestream = new filestream(); var f:file = file.applicationdirectory; f = f.resolvepath("myfile.txt"); fs.open(f, filemode.read); // work file contents here fs.close(); javascript blackberry air blackberry-playbook playbook
Comments
Post a Comment