Page 1 of 1

Loading a JSON file from inside the Android APK

Posted: Sat Aug 03, 2024 1:29 am
by Quin
I'm writing a game in SB that will load its levels from a JSON file. I plan to mainly publish the game as an APK file, and don't want to have to pull the file down from a server. How can I go about storing the needed JSON data inside my APK ,and loading it at runtime? In PureBasic, I do this with a DataSection, but we don't have IncludeBinary in SB.
Thanks.

Re: Loading a JSON file from inside the Android APK

Posted: Sat Aug 03, 2024 7:00 am
by Fred
You can just put your file amongst your assets and you should be able to load it