02-27-2011 11:59 PM
I just started working with the playbook simulator and webworks sdk.
can somebody give me a basic example of how a file is read and written to the file system by a custom app using webworks.
I tried downloading the File I/O example from webworks samples but they don't seem to work as described. When I publish the application to the simulator the Menu options don't show up.
Also, any tips on how to debug runtime errors on the simulator would be greatly appreciated.
Solved! Go to Solution.
02-28-2011 07:47 AM
The File IO APIs are not yet available on the PlayBook WebWorks SDK. We are working on them over the next couple of sprints.
The APIs available on the PlayBook are here:
02-28-2011 01:06 PM
The sketchPad example has this snippet of code.
The code presumably takes a snapshot of the screen and saves it to the local filesystem.
So if the File IO API is not released then does this mean that this code (trying to save the file )will not execute.
02-28-2011 01:19 PM
The sketchPad example is an application that runs both on the BlackBerry Smartphone and PlayBook with one source code base.
The takeScreenshot() function will only be called on the BlackBerry Smartphone where this functionality exists. There will be a flag in the code that will make this available on a Smartphone and not the PlayBook.