I need to integrate an SDK that writes files to the assets directory (assets\gdt_plugin\gdtadv2.jar). However, after integration with B4A, the SDK fails when trying to access files in assets subdirectories. Does B4A implement special handling for the assets directory? Since I cannot modify the SDK source code, how can this issue be resolved?
Thanks!
Sorry, I didn't explain it clearly. The APK file already contains the file 'assets\gdt_plugin\gdtadv2.jar', but the SDK incorrectly determines that this file doesn't exist in B4A. I also can't modify the SDK source code. How can this be resolved?
In the B4A environment, it seems that the existence of files in all subdirectories under 'assets' cannot be properly detected.
If the path in the SDK source code is hardcoded, I'm out of ideas Otherwise (but I guess that's not an option) if you can instruct that SDK to look elsewhere, you could
- place the files in the assets directory and copy them to another one, or
- if it could be directed to the assets' directory root, you could place the files there
Thank you for your explanation. This appears to be a bug in B4A. Is there any official fix available? @Erel, we would greatly appreciate your assistance!
1. Subdirectories under the assets folder were never officially supported by B4A.
2. For some reason, the Android SDK building tool, converts the folders separator from \ to /. This might be the cause of the issue you encounter.