11-21-2011 03:04 PM
The following code results in this error on PlayBook 1.0.7 OS. Any ideas what causes it and why? Also appropriate permissions are in config.xml under the widget element as shown below.
try
{
var dirs = blackberry.io.dir.appDirs;
var filePath = dirs.shared.documents.path + "/test.txt";
var fileBlob = blackberry.utils.stringToBlob("12345");
blackberry.io.file.saveFile(filePath,
fileBlob);
}
catch(ex)
{
window.alert(ex.message);
}
<rim
ermissions>
<rim
ermit>access_shared</rim
ermit>
</rim
ermissions>
11-23-2011 12:36 PM
Make sure you have coresponidng entries for feature id (e.g blackberry.io.dir and blackberry.io.file) in your config.xml.
button below the post(s)
11-23-2011 06:02 PM
Sorry. They are already there. Forgot to mention.
11-24-2011 02:03 PM
In that case I suspect you're using the old version of Tablet OS SDK, please download the recent version here.
button below the post(s)
11-25-2011 05:59 PM
11-28-2011 11:00 AM
Your sample works for me, see if you have valid config.xml and archive structure, you can compare yours with This.
button below the post(s)