Android Application Development using Linux Slackware64

Home / Android Application Development using Linux Slackware64

For an article about Android Application Development using Linux Ubuntu, you can visit here

Android Operating System is one of popular operating system for mobile device beside Windows mobile, Apple iOS, etc. This article main focus would be concentrated on installation of development tools, which is Eclipse IDE, Android SDK, and Android Developer Tool on slackware 64 bit.

Why Eclipse? Eclipse is an open source Integrated Development Environment and has full support for Android. It’s also quite simple.

In the time i write this article, I use Slackware64 14.0. Of course you can use other linux distribution if you like. You must also have active internet connection to do installation and fetching required packages.

You can skip some part if you are confident enough that you have done it before. Well, but nothing wrong by read a whole article, right? 😉

Now let’s we go!

Preparation

We need to install JAVA and Eclipse. But running Eclipse need JAVA so we will install JAVA first. An article for installing latest JAVA for Slackware64 can be found here. An article for installing latest Eclipse for Slackware64 can be found here.

Our machine is 64-bit but some tools are 32-bit. Therefore we need to make sure our Slackware is multilib enabled.

Installation

Android Developer Tool Plugin

Now let’s moving to installation of Androit Developer Tool (ADT). It is a special Eclipse plugin contains integrated android environment for building Android application using eclipse.

Start eclipse. Now navigate to:

Help - Install New Software - Add

enter the following information:

Name: ADT Plugin
Location: https://dl-ssl.google.com/android/eclipse/

Click on OK. Now select “Developer Tools” and/or “NDK Plugins”. Click Next to begin installation. Wait for installation to finish its work.

Install the SDK

Next we will install Android SDK. Downlad Android SDK starter pack from this link

Download the latest SDK. By the time I write this article, the latest version is 21.0.1. You can download linux version directly in this link:

Extract the content of Android SDK pack:

tar -xvzf android-sdk_r21.0.1-linux.tgz

In my case I will leave the SDK on /home/xathrya/android-sdk.

But wait! If you read it, you will notice that the SDK is for linux 32 bit. Our Slackware is 64 bit, right? Don’t worry, this article will guide you to convert your Slackware64 to be multilib-enabled a.k.a capable of running 32 bit application.

Install SDK Platforms

Now we need to install platforms and optional additional plugins or sample codes. Start SDK manager:

/home/xathrya/android-sdk/tools/android

Seleck SDK Platforms you want. I choose Android 2.3.3 API 10 as my smartphone Sony Xperia U use this one. When you have selected all packages you want, click Install Selected. You will be prompted to Accept License. Click Accept All and then Install.

Create Android Virtual Device

Now we have to join Eclipse IDE with Android SDK and create and Android Virtual Device (AVD). Android Virtual Device is an emulator to run your application on top of your computer.

In Eclipse, navigate to:

Window - Preferences - Android

Enter location of your Android SDK installation. In my case it is in /home/xathrya/android-sdk/. Press OK.

Now navigate to:

Window - Android Virtual Device Manager - New

Insert following information into:

AVD Name: AndroidVirtualDevice
Device: <your preferred device>
Target: <chose any desired Android version and API level available>

Click OK. The new Android Virtual Device will be created in the directory:

~/.android/avd

Congratulations! Now you can develop android apps on Slackware!

Other Notes

If you had previously install Eclipse CDT and can’t install Android SDK, please refer here.

,

About Author

about author

xathrya

A man who is obsessed to low level technology.

Leave a Reply

Your email address will not be published. Required fields are marked *

Social media & sharing icons powered by UltimatelySocial