Switch language

Default language

 
Random picture
gallery
 
Android How-To...
 



This is a follow up for the guide "WarMUX Android Application".

Android Project Settings



While you can build an application just by running a command (ant xxxxx), you have to keep in mind about all the different options and settings available inside the configuration files or even inside the source itself.

For instance, the file AndroidManifest.xml contains the version and name of the project/application, the permissions allowed to perform inside the android environment, the minimum and targeted versions of the android sdk used, and some others (In this case we build using the Android 2.2, but the game works with older versions as well).

Code :

android:versionCode="9659"
android:versionName="svn"
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="8"/>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>


Build.xml
is a big part of the build process as this file contains the libs needed to successfully compile all the files.
This file also sets the final name of application.

Code :

<project name="Warmux" default="help">


The Default.properties file contains the target sdk version used to build the application, your key information, and the proguard config file name (if used).

Code :

target=android-8
key.store=
key.alias=
key.store.password=
key.alias.password=


Local.properties contains the location of the sdk and other utilities.

Inside the SRC Directory, there are a few JAVA files that contain a couple of configuration lines.
You may or may not to edit these files and always make a backup before making changes.


The file Globals.java for instance contains the URL of the data needed to play the game, the Application Name, a Read Me Text, and Other settings.

Code :

public static String ApplicationName = "Warmux";
public static String DataDownloadUrl = "!Data|http://download.gna.org/warmux/android/android-data-svn.zip";
public static String ReadmeText = "^nYou may press \"Home\" now - the data will be downloaded in backgroundnPlease also visit http://www.warmux.org for more info".replace("^","\n");


Settings.java contain a few lines that may be useful in the future, those lines define the name of the folder where all your files will be stored in the SDCard.

Code :

Environment.getExternalStorageDirectory().getAbsolutePath() + "/Warmux" :


Inside Res/Drawable, you can find the icon for the application and other images such as the SDL Powered by logo.

Inside JNI/Application, there's a file called AndroidAppSettings.cfg.
There are a few settings that you may want to look at such as:

Code :

AppName="Warmux"
AppDataDownloadUrl="!Data|http://download.gna.org/warmux/android/android-data-11.01.zip"
AppVersionCode=9659
AppVersionName="svn"


There are a lot of files that may need your attention, go over them and edit them as you wish.

Always follow and respect the WarMUX License & feel free to contribute at any time.

 
This page has been seen 4307 times