Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Tuesday, 7 August 2012

Adding a new android platform in Eclipse

When we develop applications for Android, sometimes we need more than one platform. I will show you how to add a new one in your existing.

Go to Window > Android SDK Manager

Wait for it to load and a list of packages will be displayed.















Select the platform that you want and click Install packages..
















A new window will open with the list packages to be installed, click Accept and wait for the download to finish.













Et voila, you can now create apps for that specific platform.


Tutorial Alert: Android Development

Most of you know that I'm creating Android apps along with a friend whom I met online. We are currently working on an MTR app for Hong Kong. (And more to come, hopefully) So of course, I was looking on some tutorials on the internet that would help me understand more about Android. Then I stumbled upon a list of videos on Android by a user named "The new boston" on Youtube. I have subscribed to their channel last year but only had the chance to view their videos this year.

This could really help you if in any case, you would like to help me in developing Android apps or creating something on your own. The first part is shown below.

Video List: http://www.youtube.com/playlist?list=PL34F010EEF9D45FB8




Note though that this is a 200 video playlist. Thumbs up to Travis!

Installing Android in Eclipse

What you'll need:
Eclipse (I use Helios Indigo 3.7.2)
Where: www.eclipse.org/downloads/ 
How: http://eclipsetutorial.sourceforge.net/totalbeginner.html

Android SDK
Where:http://developer.android.com/sdk/index.html

There are two components in order to develop applications in Android. First, the SDK then the ADT.

1. Go to http://developer.android.com/sdk/index.html and download the SDK that fits your system. 

2. Download the ADT Plugin
Go to help > install new software > add
A dialog will appear

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





























3. If there are troubles with the location URL, try using http instead of https.
4. Click OK and wait.
5. You will then see a new screen with a list of tools to be downloaded. 
6. Select the checkbox for Developer Tools and click Next.
7. The read and accept license will then show up,read accept it then click finish.
8. Installation is now complete and you may restart eclipse. 

After this, you have to modify the ADT to be able to use the Android SDK on Eclipse.

9.  Select window > preferences
10. On the left side, you will see Android. Click Android. A screen like below should appear.




























11. Click Browse and locate where you previously downloaded the SDK. 
12. Click apply then OK .