Posted: 17th Apr 2021 11:00
G'day - getting back into it after a long break away so I apologise if this is a stupid thing... I've got a build that works just fine on my dev pc, but once I build it into an APK file and install it on an Android device I get an error saying it could not find an image. I have the storage access permission granted on the device, however... Anyone have any ideas why this would be happening? Am I meant to be deliberately packaging assets with my APKs? I could have sworn AppGameKit does that automatically as part of the build process...
Posted: 17th Apr 2021 12:25
The most common issue is incorrect case in the filename.

For example, if your code is looking for "image.jpg" and your filename is "image.JPG" then windows will find it but Android won't. Android filenames are case sensitive.
Posted: 17th Apr 2021 12:49
That's an awesome tip. I'll try that. Thank you!
Posted: 17th Apr 2021 13:49
That did it! Thank you
Posted: 17th Apr 2021 15:59
Anytime
Posted: 30th May 2021 20:02
FWIW Microsoft OS's are the only ones that ignore case, Linux/Android/OSX etc are all based on a Unix or one of its derivatives and this treates Filename, FILENAME and FileName as three separate files where windows would see just the one file called FILENAME

It's one of the things that makes windows coders lazy coders as it's one less thing to remember but it's always good to check