WarMUX Android Application
This guide provides step by step on how to build, sign and align (in debug mode) the android version of WarMUX.
Setting Up the Environment
Let's begin by opening the Terminal & creating a directory:
sudo mkdir /home/android && cd /home/android
Open your internet browser and go to the URL listed below:
http://developer.android.com/sdk/index.html
Download the linux (i386) Package and save it into /home/android
Go back to the Terminal and Type:
sudo tar xvzf android-sdk_r11-linux_x86.tgz
Quotation:
Replace the file name if the version changes
Let's edit Bashrc to add the Android Export:
nano ~/.bashrc
At the very bottom add:
export PATH=${PATH}:/home/android/android-sdk-linux_x86/tools
Press CTRL + X and then Y and Enter to save it.
Before we continue, let's install some packages we need:
sudo apt-get install sun-java6-jdk sun-java6-plugin
sudo apt-get install sun-java6-jre sun-java6-plugin
Quotation:
A configuration window will popup:
1. Ok > Enter
2. Yes > Enter
1. Ok > Enter
2. Yes > Enter
Type Y on both to accept and install.
Now lets navigate to the Android SDK directory:
cd /home/android/android-sdk-linux_x86/tools
And type:
./android
Select Installed Packages and Click Update All...
A window Choose Packages to Install will Open, Click Accept All and Ok.
The installation is going to take a while, so grab a cup of something and enjoy it!

Quotation:
If you are having issues installing the packages, it may be because the folder "android" doesn't have the required permissions.
To fix this issue simply go to cd /home and type "ls -al" that's going to show the user permission of each folder.
Make sure "android" and "warmux" has the same permission of your own "username" folder.
To change the permission type:
chown -R YourUsername:YourUsername android
chown -R YourUsername:YourUsername warmux
Then you can run ./android and follow the steps above.
Right now we could build the android app, but it wouldn't be able to run because it is missing a couple of files.
Now we have to install the Android NDK.
http://developer.android.com/sdk/ndk/index.html
Download the Linux 32/64-bit (x86) Package and Save it inside the Android Directory (Or you can get it using wget).
We can now extract it using the following command:
tar xvfj android-ndk-r5c-linux-x86.tar.bz2
Quotation:
Replace the file name if the version changes
We have to add a new export to Bashrc by typing:
export NDK=/home/android/android-ndk-r5c && export PATH=$NDK:$PATH
It is time to build and setup the WarMUX Android Project!
Open the Terminal Window and Navigate to:
cd /home/warmux/build/android
Type:
ndk-build
Now the source files are being compiled and it should look like:
Quotation:
Compile++ thumb : application <= xxxxxxxxxx.cpp
Compile++ thumb : application <= xxxxxxxxxx.cpp
Compile++ thumb : application <= xxxxxxxxxx.cpp
.....
Compile++ thumb : application <= xxxxxxxxxx.cpp
Compile++ thumb : application <= xxxxxxxxxx.cpp
.....
This process can take a few minutes.
When the ndk-build is completed you may continue by typing:
android update project --path .
Quotation:
That's going to update the local.properties and create a file named proguard.cfg which you won't be using for now.
Let's go ahead and build the app, shall we?
If you would like to debug the application type:
ant debug
If you would like to try a release version type:
ant release
You may find the 1.8MB apk file inside the bin folder.
Final Result

SETTINGS
FOR MORE INFORMATION ABOUT SETTINGS CONTINUE READING ANDROID HOW-TO...
This page has been seen 2165 times
Tools
Contribute