[Android] including game data inside .apk file

it is possible to build the .apk file including the game data inside it?
I mean, if i want to share or distribute a game, how can i do that?

thanks.

I believe that files in the res directory get packaged up into your apk when
built, e.g.
http://developer.android.com/resources/samples/AccelerometerPlay/res/index.html

I haven’t made a game on Android yet, so if someone else wants to jump in
with suggestions on how to build resources into your game package and then
load them at runtime, please do!On Sun, Mar 20, 2011 at 2:53 PM, T-1000 wrote:

it is possible to build the .apk file including the game data inside it?
I mean, if i want to share or distribute a game, how can i do that?

thanks.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and CEO, Galaxy Gameworks

Hi again.
Is there any kind of Android TO-DO list or a list of features that are being/going to be implemented?
I am really interested in developing for this OS and will be nice to know a little about the upcoming features.

First of all, and repeating what i said before, packing all game data inside the .apk is a must for releasing an app.
Pelya has done a great job at http://www.anddev.org/code-snippets-for-android-f33/sdl-port-for-android-sdk-ndk-1-6-t9218.html and i think he can help on this.

Adding some sort of layer to implement admob (http://developer.admob.com/wiki/PublisherSetup) can be a very nice thing.

I’m big on java but you might take a look at the necessitas project and how
the apk files are generated. Maybe that will help. I’ve been toying around
with it so far and have gotten several Qt apps built and running on my phone
so apparently it does a decent job of making the apk’s.

https://sourceforge.net/p/necessitas/home/

asmy actual android game is giving major grief with onpause onresume and
orientation change i am gonna take a look at this now… thanks!

Hi
are there any news on this topic?
i am impatient for releasing my game on Android :slight_smile:

Did you look at necessitas? They are eventually planning on adding support
for non Qt projects. I can say that I use qmake for all my projects, and
even use it in a current project that uses SDL_Joystick and SDL_Haptic. As
far as SDL on android, the main obstacle is wrapping the SDL libs inside of
java. I might just try SDL only android sometime soon.

  • Swyped from my droid.On Apr 4, 2011 11:23 AM, “T-1000” wrote:

Hi
are there any news on this topic?
i am impatient for releasing my game on Android [image: Smile]


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org