summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidtsadler <davidtsadler@googlemail.com>2012-08-04 15:12:42 +0100
committerdavidtsadler <davidtsadler@googlemail.com>2012-08-04 15:12:42 +0100
commitff361c44b6753df2895b906e9ebb9c08428f252d (patch)
treea8540aff3b3a9d39097b1ad1381ffd7b4ac38ac0
parentb2995ddfab44e842c3845e2d092bb68f93de623d (diff)
Work in progress.
-rw-r--r--_site_build/_posts/2012-08-01-installing-the-android-sdk-on-ubuntu.markdown55
1 files changed, 46 insertions, 9 deletions
diff --git a/_site_build/_posts/2012-08-01-installing-the-android-sdk-on-ubuntu.markdown b/_site_build/_posts/2012-08-01-installing-the-android-sdk-on-ubuntu.markdown
index cd24fea..1c6862d 100644
--- a/_site_build/_posts/2012-08-01-installing-the-android-sdk-on-ubuntu.markdown
+++ b/_site_build/_posts/2012-08-01-installing-the-android-sdk-on-ubuntu.markdown
@@ -5,26 +5,63 @@ author: David T. Sadler
description: This guide will show you how to install the Android SDK and the Eclipse IDE on Ubuntu.
categories: ["Android","Ubuntu"]
robots: follow, noodp, noydir, noarchive
-comments: true
-google_plus: true
-twitter_share: true
-facebook_like: true
-published: false
+comments: false
+google_plus: false
+twitter_share: false
+facebook_like: false
+published: true
licensed: true
---
-By the end of this guide you will run a simple "Hello World" application on either the Android emulator or a physical device.
+This guide will take you through the nessecary steps for installing the Android SDK on Ubuntu. You will also install the Eclipse IDE which you will use to develop a simple "Hello world" application that will then be ran on either the Android emulator or an actual Android device.
-## Getting started.
+As this guide is quite long I have broken it down into the following sections.
-There are a few things that we require before we can install the SDK. We need the Java Development Kit (JDK) which provides tools such as a Java compiler that allow us to develop Java applications. The Java Runtime Environment (JRE) is needed so that Java programs, such as Eclipse, can run on your system. Apache Ant is needed if you wish to build Android applications outside of an IDE.
+* [Getting started.](#start)
+* [The Android SDK.](#sdk)
+* [The Eclipse IDE.](#ide)
+* [The Android Development Toolkit (ADT) plugin for Eclipse.](#adt)
+* [Creating an application.](#application)
+* [Running the application on the Emulator.](#emulator)
+* [Running the application on an Android device.](#device)
+
+<h2 id="start">Getting started.</h2>
+
+For this guide I used Ubuntu 12.04 (Precise Pangolin). The instructions should work on other versions of Ubuntu but keep in mind that I won't have tested this.
+
+Before getting down to the business of installing the SDK you must ensure that the following have been installed on your system.
+
+<dl>
+ <dt>Java Development Kit (JDK)</dt>
+ <dd><p>Provides tools such as the Java compiler that allow us to develop Java applications.</p></dd>
+ <dt>Java Runtime Enviroment (JRE)</dt>
+ <dd><p>Provides an enviroment so that Java programs, such as Eclipse, can run on your system.</dd>
+ <dt>Apache Ant</dt>
+ <dd><p>A Java tool for automating software build processes. Allows you to build Android applications outside of an IDE. While it won't be used in this guide you will find it useful if you move onto developing large Android applications.</p></dd>
+</dl>
+
+Installation is as simple as entering the following commands.
{% highlight bash %}
sudo apt-get update
sudo apt-get install ant default-jdk default-jre -y
{% endhighlight %}
-Google provide an archive of the SDK for downloading. Since it is very likely that the SDK has been updated since this post was written you should check the <a href="http://developer.android.com/sdk/index.html" rel="external nofollow" target="_blank" title="Go to the Android SDK website">website</a> for the current version number.
+If you are developing on a 64-bit system there is an extra step that you will need to do. According to the SDK <a href="http://developer.android.com/sdk/index.html" rel="external nofollow" target="_blank" title="Go to the Android SDK website">website</a> you must be capable of running 32-bit applications. On 64-bit versions of Ubuntu 12.04 this is done with the command below.
+
+{% highlight bash %}
+sudo apt-get install ia32-libs-multiarch
+{% endhighlight %}
+
+<h2 id="sdk">The Android SDK.</h2>
+
+Installing the SDK is done by downloading the archive of the Android SDK Starter Package that Google provides. This is not the complete SDK enviroment as it only includes the core SDK tools. You will use these tools to download the rest of the SDK. Since it is very likely that the package has been updated since this guide was written you should check the <a href="http://developer.android.com/sdk/index.html" rel="external nofollow" target="_blank" title="Go to the Android SDK website">website</a> for the current version number.
{% highlight bash %}
wget http://dl.google.com/android/android-sdk_r20.0.1-linux.tgz
{% endhighlight %}
+
+<h2 id="ide">The Eclipse IDE.</h2>
+<h2 id="adt">The Android Development Toolkit (ADT) plugin for Eclipse.</h2>
+<h2 id="application">Creating an application.</h2>
+<h2 id="emulator">Running the application on the Emulator.</h2>
+<h2 id="device">Running the application on an Android device.</h2>