Hi
I'd like to copy some pngs from "sprites/" inside my project tree to "/sdcard/SPRITES/" .
I think I have a "working code", since it does it correctly in GiderosPlayer on devices and on PC, but there is something wrong when I export a test apk:
As soon as I execute the "copy" code (it's bound to a button) the app crashes.
Eclipse logCat says that it can't open "|R|sprites/".
I tried also using paths without the "|R|" but it made no difference.
I am wondering why should it work in players and not in its own apk?
Where could I have missed something?
Thank you
:-B
Comments
There might be a problem, since not in player mode all files are in apk archive and not simply on file system. But you still should be able to copy them atleast to documents folder.
like here:
http://docs.giderosmobile.com/reference/plugin/sqlite3#sqlite3
the other problem is that Android file system is case sensitive, so if any part of the path is not in the same case as you write it to be, there also can be problems.
I'm sorry I don't understand the first part of your answer
|R| -at least on android- points to /sdcard/gideros/appname/resources/
I believe it's placed there on install, it should not be in the apk archive, am I wrong?
Thank you
when you install and use sources as app thats completely different story
Likes: pie
for future reference, I was expecting that lfs had read access to |R| as it has to |D|. no, at least on android
My app was crashing because lfs.dir was trying to retrieve a file list from a directory inside an unreachable path ( |R| ).