Android: project name different from SDLActivity?

Hi,

Using SDL for Android, you are supposed to call your project SDLActivity, because this name is hard-coded in SDL/src/core/android/SDL_android.cpp. This means that you only can install one SDL app on your phone or tablet. If you try to install another, with a different name (specified in the AndroidManifest.xml file), it will overwrite the first app. How can this be prevented?

wboe

El oct 7, 2012 12:37 p.m., “wboe” <w.boeke at upcmail.nl> escribi?:

Hi,

Using SDL for Android, you are supposed to call your project SDLActivity,
because this name is hard-coded in SDL/src/core/android/SDL_android.cpp.
This means that you only can install one SDL app on your phone or tablet.
If you try to install another, with a different name (specified in the
AndroidManifest.xml file), it will overwrite the first app. How can this be
prevented?

This may help you
http://mdqinc.com/blog/2011/11/using-your-own-app-name-in-a-sdl-android-app/

The solution from josebagar works, it is simple and elegant. Thanks!

One small addition: in the ant build file the line

should be modified to

wboe

PS
Vivat SDL for Android! If you code in C++11, then it’s better and easier then android’s own java toolbox!