[SDL] SDL2 on Android: android_app struct pointer

glezmen bokorn at tvn.hu
Fri Oct 11 05:20:51 PDT 2013

Hi everyone,

I'd like to add AdMob ads to my almost-done game. I found a great howto: http://www.dynadream.com/ddweb/index.php/Special_Blog?id=20
The problem is, I can't find out how to get the android_app struct pointer needed for the last step:


 // Somewhere you defined this...
extern struct android_app *__gandroidapp__;

I search3e the complete SDL sources for android_app, tried to get it somehow through JNI_GetEnv, but still nothing :(

can someone enlighten me on this topic?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20131011/529837a8/attachment-0008.htm>

More information about the SDL mailing list