system.DocumentsDirectory android permissions?

Im going to post here as I think the issue is on the Ansca side rather then in the general dev forums…

I am writing a local file something.html after parsing an xml file. I save it in the system.DocumentsDirectory.

I can verify the file exists… but when I send it to the webpopup I get some weird directory that doesnt exist /data/data/packagename/app_data/MYURL

[lua] --This is the mock of the name that I get back from data added here for some clarity
local msgfile = “something.html”

– simple call back
local function listener( event )
native.showAlert(“title”, event.url)
end

– lets verify that the file exists on drive in the space we think it is
local path = system.pathForFile( msgfile, system.DocumentsDirectory )
local file = io.open( path, “r” )

if file then
– yep found the file adding the alert just here
native.showAlert(“epic”, path)
local options = { hasBackground=false, baseUrl=system.DocumentsDirectory, urlRequest=listener }
– I also tried sub path in the msgfile and removed the options… no diff
native.showWebPopup(50, 50, display.contentWidth, display.contentHeight-20, msgfile, options)
else
– failed to find the file in the system.DocumentDirectory (I never get here)
native.showAlert(“epic”, “fail”)
end[/lua]

It was suggested that its a permissions issue on android and a search for “/data/data/packagename/app_data/MYURL” will turn up another post that was a bug. Looking for help… we can’t go to market till its resolved.
[import]uid: 37036 topic_id: 9310 reply_id: 309310[/import]

Ansca? [import]uid: 37036 topic_id: 9310 reply_id: 34099[/import]

Haven’t heard anything from ansca… this is getting critical… we are delaying marketing and launch activities until we can resolve this. [import]uid: 37036 topic_id: 9310 reply_id: 34273[/import]

This has been fixed and available in the next Daily Build (498).
[import]uid: 7559 topic_id: 9310 reply_id: 34495[/import]

Yes it has… Great work!!

[lua]local filename = “localpage1.html”
local alertid

local background = display.newImage(“background.png”, true)

local function popupLocalFile()
local options = { hasBackground=false, baseUrl=system.DocumentsDirectory }
native.showWebPopup( “localpage1.html”, options )
end

local function writeLocalFile()
local path = system.pathForFile( filename, system.DocumentsDirectory)
file = io.open( path, “w” )

local t = “Hello Webpopup World”

file:write( t )
io.close( file )
end

local function onComplete( event )
native.cancelAlert( alertid )
popupLocalFile()
end

local function verifyLocalFile()
local path = system.pathForFile( filename, system.DocumentsDirectory )
local file = io.open( path, “r” )
if file then
local contents = file:read( “*a” )
alertid = native.showAlert(“success”, path, { “OK” }, onComplete)

else
alertid = native.showAlert(“fail”, file, { “OK” }, onComplete )
end
io.close( file )
end
writeLocalFile()

verifyLocalFile()[/lua] [import]uid: 37036 topic_id: 9310 reply_id: 34568[/import]