Android Question The subdirectory in assets cannot be accessed properly.

mywmshow

Member
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!


11.jpg
22.jpg
 

mywmshow

Member
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.
 
Upvote 0

walt61

Well-Known Member
Licensed User
Longtime User
Ah I see, sorry I misread that. Indeed, subdirectories under 'assets' are an issue as far as I know: see https://www.b4x.com/android/forum/threads/organizing-dirassets.26789/#post-186744

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
 
Upvote 0

mywmshow

Member
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!
 
Upvote 0
Top