Hello,
I am trying to get file names in my project directory. It seems working fine in simulator, but when I load it to Android phone, I get a director error as:
Failed to execute new(params) function on screen2.
The code is as below:
local doc_path = system.pathForFile("/muzik")
fileCount = 1
for file in lfs.dir(doc_path) do
if (string.find(file, “.ogg”)) ~= nil then
soundFNameStrings[fileCount] = file
fileCount = fileCount + 1
end
end
I tried to give second parameter to system.pathForFile(), like system.ResourceDirectory, system.DocumentsDirectory etc.
What may be the problem.
Thanks. [import]uid: 183134 topic_id: 34755 reply_id: 334755[/import]