Hi,
I try to open several file that are in my root folder (where my main.lua is)
index.html
index.css
backup.png
it works fine on iPhone (device) but not on Android!
on Android I only can open the
index.css all other are not assign/found correctly.
file = 'index.html"
local base = system.ResourceDirectory
path = system.pathForFile(file, base )
if path then
print ("in path")
served = io.open(path,"r")
end
For the index.html for example I do get
path: file:///android_asset/index.html
and a NIL as result for -> served = io.open(path,“r”)
the index.css gives a
path: /data/data/com.chris.mydayscorona/files/coronaResources/index.css
at io.open does work fine.
the backup.png gives a
path: backup.png
and io.open does NOT find the file.
i also tried manually to set the path same as index.css so for example
/data/data/com.chris.mydayscorona/files/coronaResources/index.html
but io.open does NOT find a file.
I really need to have that fixed soon.
thx
chris
thx
chris
[import]uid: 4795 topic_id: 19090 reply_id: 319090[/import]