- Home /
xmlreader android path problem
I'm trying to load an XML file that I have put in streaming resources and I can't seem to figure out the path, if I use jar:file:// I get a URI error and if I try without that it can't find the path.
I've tried
"jar:file://" + Application.persistentDataPath + "/assets/" "jar:file://" + Application.persistentDataPath + "!/assets/"
these both give "URI shceme must start with" errors, and the second path works for loading in asset bundles.
and i've tried
Application.persistentDataPath + "/assets/" "file://" + Application.persistentDataPath + "/assets/" "file://" + Application.persistentDataPath + "!/assets/"
which all give "could not find a part of the path "/data/data/etc..."
that same paths with dataPath instead of persistentDataPath give me "could not find a part of the path "/data/app/etc..."