Results 1 to 5 of 5

Thread: Install Eclipse for Java and Android

  1. #1
    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

  2. #2
    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.

  3. #3
    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.

  4. #4
    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.

  5. #5
    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!

Similar Threads

  1. How to Install Java on Linux, Mac OS X, iOS & Android
    By ADJATAY in forum Tips & Tweaks
    Replies: 1
    Last Post: 16-05-2012, 12:11 PM
  2. getting error while connecting Eclipse with java
    By mbangali in forum Windows Software
    Replies: 3
    Last Post: 15-09-2011, 09:56 PM
  3. Eclipse: java.lang.UnsatisfiedLinkError
    By Gadin in forum Software Development
    Replies: 5
    Last Post: 29-07-2010, 04:47 AM
  4. Java Card 2.1.1 Plugin for Eclipse
    By Marjorie in forum Software Development
    Replies: 5
    Last Post: 23-07-2010, 01:40 AM
  5. Eclipse for your Java applications
    By JamesMK in forum Guides & Tutorials
    Replies: 3
    Last Post: 22-06-2009, 03:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,565,626.91202 seconds with 17 queries