Android: project name different from SDLActivity? |
Android: project name different from SDLActivity? |
gabomdq
|
El oct 7, 2012 12:37 p.m., "wboe" escribió:
This may help you http://mdqinc.com/blog/2011/11/using-your-own-app-name-in-a-sdl-android-app/ |
|||||||||||||
|
josebagar
|
Hi,
I'm using a different approach to this. I'm referencing my activity from AndroidManifest.xml and then create a new class with a very few lines of code:
AndroidManifest.xml looks like this:
And I can use all of SDL2's code without any modification. It seems to be working fine but I'm pretty new to Java, so I might be missing something. Regards and hope this is helpful. |
|||||||||||||||
|
wboe
|
The solution from josebagar works, it is simple and elegant. Thanks!
One small addition: in the ant build file the line <project name="SDLActivity" default="help"> should be modified to <project name="MyGame" default="help"> wboe PS Vivat SDL for Android! If you code in C++11, then it's better and easier then android's own java toolbox! |
|||||||||||
|
josebagar
|
If the approach is correct and people like it, it might be a good idea to add the instructions to README.android as this will probably be of interest to a lot of people in the future. |
|||||||||||||
|