04-27-2012 12:48 PM
does anybody create successfully an application using file io with PhoneGap?
I can't find a way to use playbook and phonegap also not with git project started.
04-30-2012 03:15 PM
Unfortunately not. I have spent many hours trying to get it working, but it seems that it is not implemented for the PlayBook.
When trying to access the filesystem, I get the error "Class File cannot be found".
The only thing I found on the net about it is this:
Does anyone know about a workaround for this or a timeline on when it will be implemented for the PlayBook?
I'm currently using the FileWriter to continously write things into a file. The only thing I have found in the API Docs for WebWorks is saveFile which creates a new file with data. But it seems that it can't modify the file once its created. Does anyone know a function that can do this?
05-01-2012 07:01 AM
Thanks for answer. Does the FileWriter work in WebWorks Apps? Is there a documentation/example for it?
I use the saveFile method of Webworks API but have trouble manipulating the filestream to write a bom (byte order mark) to an UTF-8 file.
05-01-2012 08:19 AM
The FileWriter is part of PhoneGap and doesn't work on the PlayBook. That's why I was asking for a WebWorks API that could replace it. The closest I found was saveFile, but it seems that it can only save a file once and then can't modify it anymore.