Certain games and applications require different screen orientation constraints as well as the obvious name, version and package differences between each other. There are also GPU flags and “MIMEs” we have to setup based on each project’s requirements, Monkey-X simplifies this by reducing the amount of resource / XML editing by allowing us to define constants in code.
The following is pretty much what I use on my main source before I begin to include libraries and the main routine:
#ANDROID_VERSION_CODE = "1" #ANDROID_VERSION_NAME = "1.0" #ANDROID_APP_LABEL = "Your Program Name" #ANDROID_SCREEN_ORIENTATION = "portrait" ' could be landscape or user which may or may not use 'sensor'. #ANDROID_APP_PACKAGE = "com.yourbrand.yoursubcat.yourprogramname" ' for instance: com.gushh.android.thisgame #OPENGL_GLES20_ENABLED = False #ANDROID_NATIVE_GL_ENABLED = False #TEXT_FILES = "*.txt|*.xml|*.json" #IMAGE_FILES = "*.png|*.jpg|*.gif|*.bmp" #SOUND_FILES = "*.wav|*.ogg|*.mp3|*.m4a" #MUSIC_FILES = "*.wav|*.ogg|*.mp3|*.m4a" #BINARY_FILES = "*.bin|*.dat"
By defining these constants we avoid having to edit resource files by hand or utilize extra tools / external code to perform the same action.
If you want to fully customize your Android target I suggest you create a new target to avoid modifying the defaults.
That’s all for now, Cheers!