First I would like to say what a great product Livecode is. I don't have any programming skills, but can work with Livecode quite easily.

The problem:
I want to deploy a XML file with my stack. Everything is working in Livecode itself, but when I deploy it to Android, it gives me an error: "xmlerr, can't find element." I loaded the file in the Copy Files areas.
on mouseUp
loadPreferences
end mouseUp
command loadPreferences
local tTree
put readPreferencesToXMLTree() into tTree
if tTree is empty then
exit loadPreferences
end if
processPreferencesTree tTree
revDeleteXMLTree tTree
end loadPreferences
private function readPreferencesToXMLTree
local tPreferencesFile, tResult
put specialFolderPath("documents") & "/Preferences.xml" into tPreferencesFile
if there is not a file tPreferencesFile then
put URL("binfile:" & specialFolderPath("documents") & "/Preferences.xml") into URL("binfile:" & specialFolderPath("engine") & "/Preferences.xml")
end if
put the result into tResult
if tResult is not empty then
answer error "Failed to read preferences file at location: " & tPreferencesFile
return empty
end if
local tTree
put revCreateXMLTreeFromFile(tPreferencesfile,false,true,false) into tTree
if tTree is not an integer then
answer error "Failed to process preferences file with error: " & tTree
return empty
end if
return tTree
end readPreferencesToXMLTree
I'm deploying it on a Nexus with version 2.3.3.
Can anyone help?
Grtz. Erwin