Difference between revisions of "Android : Install Eclipse Plugins"

From CDOT Wiki
Jump to: navigation, search
m (Protected "Android : Install Eclipse Plugins" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
[[Category:Android]]{{Ecl_menu}}
 
[[Category:Android]]{{Ecl_menu}}
 
[[Category:ECL_Activities]]__NOTOC__
 
[[Category:ECL_Activities]]__NOTOC__
{{Ecl_installation|type=Mobile/Android|name=Eclipse Classic|install=Follow the [http://www.vogella.de/articles/Android/article.html#first tutorial to create your first Android application]}} after you install the Android SDK and Android Development Tools (ADT)
+
{{Ecl_installation|type=Mobile/Android|type-small=mobile-android|name=Eclipse Classic|install=
 +
* Install Android SDK: Download the Android SDK from the Android homepage under [http://developer.android.com/sdk/index.html Android SDK download]
 +
* Install Eclipse plugins for Android: use the [http://www.vogella.de/articles/Eclipse/article.html#updatemanager Eclipse update manager] to install the plugins for the [http://developer.android.com/sdk/eclipse-adt.html Android Development Tools (ADT)]
  
* Android SDK: Download the Android SDK from the Android homepage under [http://developer.android.com/sdk/index.html Android SDK download]
+
Follow the [http://www.vogella.de/articles/Android/article.html#first tutorial to create your first Android application]
* Eclipse plugins for Android: user the [http://www.vogella.de/articles/Eclipse/article.html#updatemanager Eclipse update manager] to install the plugins for the [http://developer.android.com/sdk/eclipse-adt.html Android Development Tools (ADT)]
+
}}

Latest revision as of 10:20, 4 March 2011

Install Eclipse Mobile/Android

  • Go to Eclipse Downloads and choose Eclipse Classic (attention at operating system 32/64 bit).
  • Unzip the downloaded file in /Eclipse_Platform/Mobile/Android directory.
  • Start Eclipse (click the eclipse executable file in /Eclipse_Platform/Mobile/Android/eclipse directory
  • In the dialog box:Workspace Launcher -> Workspace type: ./wskp/{app-type} where {app-type} could be: hello or simple or lab

Follow the tutorial to create your first Android application

For this course you will be using the workspace defined in /Eclipse_Platform/Mobile/Android/eclipse/wksp/...

The root directory for this course is: Eclipse_Platform

  1. Basics/eclipse subdirectory
  2. OSGi/eclipse subdirectory
  3. RCP/eclipse subdirectory
  4. Mobile/
    1. Android/eclipse subdirectory
    2. BlackBerry/eclipse subdirectory
  5. Enterprise/
    1. Virgo/eclipse subdirectory
    2. WTP/eclipse subdirectory
Ecl-course-dir-structure-new.png
Ecl-package-structure-new.png

where:

  • {topic} must be: basics or osgi or rcp or android or blackberry or virgo or wtp
  • {subject} must be: hello or simple or lab
  • {subpack} a subpackage name (if need it for complex apps)


Check your working environment by running the Hello Sample from Course Repository

You may also want to install JUnit Library to be able to debug your applications.

To install JUnit follow the instructions:

  1. Download JUnit4.x.jar from the JUnit website . The download contains a "junit-4.*.jar" which is the JUnit library.
  2. To make JUnit available in your Java project you have to add the the JUnit library file to your Java classpath. (If you do not know how to do it, please use this Eclipse tutorial to learn how to add jar files to your Eclipse project).