Ok, I’m only going to summarise the steps here really because there’s a good tutorial explaining what needs to be done on the Android developer website.

There are a few things that we need to install; firstly the Android SDK which contains all of the required API libraries and tools for building, debugging and testing Android apps, creating Android device emulators and connecting to real Android devices.

Secondly we want the Android Eclipse plugin, this isn’t strictly required but greatly simplifies the process.

Note: There is now an all in one download that conatis a pre-configured Eclipse package, as we already have Eclipse we won’t be using this.

To install the SDK just download the zipped file from http://developer.android.com/sdk/index.html and extract is somewhere, I put it in a directory called dev under my home directory. From the tools directory execute

$ android sdk

Which will then bring up a GUI allowing you to configure the tools, refer to the Android Developer site for what you need. We’ll be using the Google Play Services API at some point so this should be selected

To install the Eclipse plugin, in Eclipse go to “Help->Install New Software” from the main menu, click “Add” at the top and enter a new site;

Name: ADT Plugin

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

And you’ll see a list of available plugins, select “Developer Tools” and install.

When prompted, tell the installer where you’ve put your SDK.

Finally add the SDK platform tools and an Android platform (I’m using 4.3.1, as this is the latest current release for devices at the time of writing and also the platform that I have on my handset) and that’s it, we’re ready to start developing Android apps!

If not familiar with Android development it is recommended to go through the basics in the Google online tutorials at http://developer.android.com/training/basics/firstapp/index.html, this also covers setting up Android emulators and connecting to a real device.

Next we’ll create an Android Virtual Device to run in an emulator or a device and run and debug a simple app to on it to connect to our web services.

Next page: Testing the webapp from an Android app

Back to: Database Design and Querying with PHP


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: