Reputation: 423
I have an Android application that initializes by reading in raw binary data that I store in my own binary file format. Is there a way that I can package this binary info in with application for distribution such as in the resources folder or something? My solution at present has been to just put the files in a folder on the SDCard and open them up for reading. Works for now but for distribution it would be nice to package it all within the APK itself.
Thanks
Upvotes: 2
Views: 7573
Reputation: 48272
You package it into res/raw folder and read as a Raw resource.
See here for how to deal with raw resources http://developer.android.com/guide/topics/resources/providing-resources.html
Upvotes: 7