I use 3rd party libs as source code, which allow me to create sprites from *.svg files. This method work fine with my build for Win32 platform, but not with my Androin builds.
The main problem on Android occurs when I have to open, read and parse *.svg file.
All my *.svg files are placed in assets/res/ folder. May be I should place my *.svg files in some other location?!
What is the proper way to open and read a file within apk using Android NDK? Is it possible at all?
What options do I have? Why Android build system is so complicated and messy?
As you can see below fopen is used to open “assets/res/pieceOne.svg” file with “rb” mode. After debug’s “step over” fopen fails and file handle is NULL.