@peach.
its cool you keep up on that postings
thanks.
yes its a typo… but not in the original code (otherwise it would not work at all 
anyhow… the bug still resists on an Android Device.
I did a test app, you can download here and just install on a android device.
http://www.2t4u.com/!testapps/coronaandroidtestapp_openressources.zip
its source & compiled.
the app itself is just a folder with:
aaa.css
aaa.htm
aaa.html
aaa.jpg
aaa.png
main.lua
----main.lua =
mytext=native.newTextBox( 0, 0, 320, 480 )
mytext.size = 8
result = ""
function tryopen(whatfile)
local base = system.ResourceDirectory
result = result .. "\n----\nsearch for path:"
path = system.pathForFile(whatfile, base )
if path then
result = result .. "\nin path: "..path
served = io.open(path,"r")
if served ~= nil then
result = result .. "\nYEAH! opened"
else
result = result .. "\nARGG! -----\> Path OK, but not opened !"
end
else
result = result .. "\nSNIEF! NO PATH!?"
end
end
tryopen ("aaa.html")
tryopen ("aaa.css")
tryopen ("aaa.htm")
tryopen ("aaa.html")
tryopen ("aaa.png")
mytext.text = result
it just try to open each of that file. The Result till now: Only the .css file is found and opened!
all other are returned by pathforfile, but could not be opened.
Please, thats quiet urgent to have done and it really looks like a bug. Should u give that
Source to someone who can check it on an Android Device and do asap a fix for that.
1000 Thanks
Chris
[import]uid: 4795 topic_id: 18989 reply_id: 73773[/import]