Hi,
This code works in the simulator but not on my Android device:
local path = system.pathForFile("chinese\_rules.db") print("PATH:: " .. tostring( path ) )
When I run this code on my Galaxy S4 path returns nil.
My first thought was that it was some type (case sensitivity) but I can’t find any typo:
I can’t find any reason why it should receive nil. This causes a problem as I can’t load my database.
I have also tried this with the same result:
local path = system.pathForFile("chinese\_rules.db", system.ResourceDirectory)
I have been able to load a path and load databases like this before.
Corona Build: 2013.2100 (2013.12.7)
Best regards,
Tomas