Go Back   TechArena Community > ARENA > Guides & Tutorials
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Sponsored Links



Install Eclipse for Java and Android

Guides & Tutorials


Reply
 
Thread Tools Search this Thread
  #1  
Old 10-03-2010
Member
 
Join Date: Feb 2010
Posts: 136
Install Eclipse for Java and Android

Install Eclipse for Java and Android



1. Prerequisites:

Before starting a note: Eclipse and Android SDK are available on several platform such as Windows and Linux, before downloading the zips below verify that they correspond to the platform where you want develop.

A. The Eclipse IDE for Java can be found here:
http://www.eclipse.org/downloads/

B. The Android SDK 1.5 can be found :
http://developer.android.com/sdk/dow...ows-1.5_r1.zip

C. The Android SDK 1.1 can be found here :
http://developer.android.com/sdk/dow...ows-1.1_r1.zip
Reply With Quote
  #2  
Old 10-03-2010
Member
 
Join Date: Feb 2010
Posts: 136
Re: Install Eclipse for Java and Android

2. Installation:
(Note : The installation process show here is on Windows platform)

A. Start the download, Eclipse for Java, place all files in a folder you can simply call the folder "Eclipse" run "eclipse.exe" then set your "workspace", wizard appears at first launch to guide you. This should be pretty simple to go with.

B. Download the Android SDK, put all files in the "Eclipse \ SDK \ android \ 1.1" if you can not find the folders mentioned already.

C. This will direct you to the Android plugin for Eclipse, now from Eclipse click "Menu-> Help-> Software Updates ...". Click the "Add Sites" and type the following address and validate it:
http://dl-ssl.google.com/android/eclipse

Or you can download the plugin manually from
http://developer.android.com/sdk/index.html

More information on this is provided on the Android official site
http://developer.android.com/guide/d...tools/adt.html



Caution : When you confirm, it is likely your Eclipse cautioned that there is no repository. It is normal just click "ok".

Select all components and then click "Install ..."


Eclipse will download files and then ask you to restart the IDE, click "yes"


The installation is complete we will now proceed to the configuration.
Reply With Quote
  #3  
Old 10-03-2010
Member
 
Join Date: Feb 2010
Posts: 136
Re: Install Eclipse for Java and Android

3. Configuration:

Now follow these steps
Eclipse click "Menu-> Windows-> Preferences" then click the item named "Android." Click the "Browse" button and then go get the file we created earlier "Eclipse \ SDK \ android \ 1.1" and click OK.

Caution: The file "platforms" is missing from the zip SDK 1.1 you'll need to copy the zip version 1.5. To do this open the zip "android-sdk-windows-1.5_r1.zip" folder and drag the "platforms" in the folder "Eclipse \ SDK \ android \ 1.1".



Then click "Menu-> File-> New-> Project ...". Select "-Android> Android Project" and click OK.


Provide a name for your project, select the SDK 1.1 and then fill in the fields "properties" according to your needs.


Then click "Finish". The wizard will create a project with such an icon, view, and a default activity.
Reply With Quote
  #4  
Old 10-03-2010
Member
 
Join Date: Feb 2010
Posts: 136
Re: Install Eclipse for Java and Android

4. Coding part:
Before coding and debugging the program, we are going to create a virtual machine. For this run a command shell (Windows-> Start Menu-> Run-> cmd) and then go to the folder of the SDK (chdir Eclipse \ SDK \ android \ 1.1). Then type the following command: android target list. By issuing this command all the devices available and their version will be displayed. We will choose the version 1.1.

Android Available targets:
Code:
id: 1
Name: Android 1.1
Type: Platform
API level: 2
Skins: HVGA (default), HVGA-L, HVGA-P-L QVGA, QVGA-P

id: 2
Name: Android 1.5
Type: Platform
API level: 3
Skins: HVGA (default), HVGA-L, HVGA-P-L QVGA, QVGA-P

id: 3
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Description: Android + Google APIs
Based on Android 1.5 (API level 3)

Libraries:
Com.google.android.maps (maps.jar)
API for Google Maps
Skins: QVGA-P-L HVGA, HVGA (default), QVGA-L,-P HVGA
Then type the following command:
Code:
avd create android : "name of the phone" name : target
So we have just created an Android emulator supports the framework 1.1.
Reply With Quote
  #5  
Old 10-03-2010
Member
 
Join Date: Feb 2010
Posts: 136
Re: Install Eclipse for Java and Android

5. Run the program

From the bases you have to start programming your application and test it. To do this click on the folder of your project and click the button "Run", select "Android Application" and let the magic (well to start the emulator, it can take several minutes depending on your configuration). For debugger, directly on the phone, you simply plug it via USB cable and click on "play".



And here is your first application for the GPhone comes to life, is beautiful technology!
Reply With Quote
Reply

  TechArena Community > ARENA > Guides & Tutorials


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Install Eclipse for Java and Android"
Thread Thread Starter Forum Replies Last Post
getting error while connecting Eclipse with java mbangali Windows Software 3 15-09-2011 10:56 PM
Eclipse: java.lang.UnsatisfiedLinkError Gadin Software Development 5 29-07-2010 05:47 AM
Eclipse not compiling my Java file Valliy Software Development 4 25-07-2010 01:30 AM
Java Card 2.1.1 Plugin for Eclipse Marjorie Software Development 5 23-07-2010 02:40 AM
Eclipse for your Java applications JamesMK Guides & Tutorials 3 22-06-2009 04:44 PM


All times are GMT +5.5. The time now is 11:37 PM.