Eclipse & android setup

26
Run for Mobile project MinChuan University Industrial Master Program Eclipse & Android Apps setup

Transcript of Eclipse & android setup

Page 1: Eclipse & android setup

Run for Mobile projectMinChuan University

Industrial Master Program

Eclipse & Android Apps setup

Page 2: Eclipse & android setup

Steps1. Preparing Your Development Computer – Java JDK

2. Downloading the SDK Starter Package – Eclipse / Andorid

3. Installing the ADT Plugin for Eclipse

4. Setup Android SDK and add ADT plug-in from Eclipse

5. The others

Page 3: Eclipse & android setup

Setup Eclipse before• The Eclipse IDE requires that a Java Runtime Environment (JRE) be

installed on your machine to run. If you want to using Android SDK manager installer Java JDK was need.

Operating System Version Hardware JRE Windowing System

Windows

7x86 32-bit Sun Java 5 Update 22

IBM Java 5 SR11

Win32

Direct download

x86 64-bit

Vistax86 32-bit

Sun Java 5 Update 22IBM Java 5 SR11Oracle JRockit 27.6.5

x86 64-bit Sun Java 5 Update 22IBM Java 5 SR11

XPx86 32-bit

Sun Java 6 Update 17Sun Java 5 Update 22IBM Java 5 SR11Oracle JRockit 27.6.5

x86 64-bit Sun Java 5 Update 22IBM Java 5 SR11

Page 4: Eclipse & android setup

Setup Eclipse• Recommend to setup Eclipse Galileo Packages, you can plug-in

the UML2 from Eclipse help menu to add it.

• After download then decompress it into folder which you want, but recommend to C: or D: root, like as C:\eclipse

Click dash line to download

Page 5: Eclipse & android setup

Setup Android SDK• If you're already using the Android SDK, you should update to

the latest tools or platform using the Android SDK and AVD Manager.

• Download Android SDK

• If used zip file, decompress it into C:\ or D:\ root, like as: C:\android-sdk-windows or D:\android-sdk-windows

android-sdk_r10-windows.zip installer_r10-windows.exe (Recommended)

Page 6: Eclipse & android setup

Android SDK and AVD Manager• The Android SDK

and AVD Manager's Available Packages panel, which shows the SDK components that are available for you to download into your environment.

Page 7: Eclipse & android setup

Get ADT Plugin for Eclipse• Android Development Tools (ADT) is a plugin for the Eclipse IDE

that is designed to give you a powerful, integrated environment in which to build Android applications.

• ADT extends the capabilities of Eclipse to let you quickly set up new Android projects, create an application UI, add components based on the Android Framework API, debug your applications using the Android SDK tools, and even export signed (or unsigned) .apk files in order to distribute your application.

• Download ADT 10.0.1 (March 2011) to folder under your PC, don’t decompress it.

Page 8: Eclipse & android setup

Startup Eclipse• Recommend to created a shortcut on desktop for eclipse.

• Double click eclipse icon from setup folder.

Page 9: Eclipse & android setup

Add ADT plugin into Eclipse• Click Help on Menu bar and click Install New Software…

Page 10: Eclipse & android setup

Install dialog• Click Add… button, and type ADT at Name column then click

Archive button to choice you have downloaded ADT plugin form your save folder.

Page 11: Eclipse & android setup

Install• Click Name

icon to click to

• Then click theNext > button

Page 12: Eclipse & android setup

Install• Install Details

for ADT contents.

• ClickNext > button

Page 13: Eclipse & android setup

Install• Review

Licenses

• Click I agree

• Click Finish

Page 14: Eclipse & android setup

Installing Software

Page 15: Eclipse & android setup

After Eclipse restart• Click Window from Menu bar to check Android SDK and AVD

manager

Page 16: Eclipse & android setup

Eclipse Preferences of Android SDK• Click Window from Menu bar to choice Preferences

Page 17: Eclipse & android setup

Preferences Android setting• Choice

Android from left side

• Click Browseto assignAndroid SDKfolder

Page 18: Eclipse & android setup

Startup Android SDK from Eclipse• Click Window from Menu bar to startup Android SDK and AVD

manager

Page 19: Eclipse & android setup

Startup Android SDK from Eclipse

Page 20: Eclipse & android setup

Create an AVD from Android SDK• Click New button

Page 21: Eclipse & android setup

View emulator• Change display size from 3 to 6

Page 22: Eclipse & android setup

OthersFor Eclipse and Android

Page 23: Eclipse & android setup

Android App Inventor• Creating an App Inventor app begins in your browser, where you

design how the app will look. Then, like fitting together puzzle pieces, you set your app's behavior. All the while, through a live connection between your computer and your phone, your app appears on your phone.

• Download Android App Inventor windows version

Page 24: Eclipse & android setup

Eclipse Babel Project Downloads• Babel Language Packs 0.8.1 are now available! Translations in

all languages for all projects in Babel up to December 11th, 2010 are included in 0.8.1.

• Unzip the Babel language packs into the Eclipse installation folder. If your operation system is set to the same locale as the language packs, then just launch Eclipse.

Babel Language Pack ZipsHelios

Galileo

Page 25: Eclipse & android setup

Eclipse SDK 4.0• Eclipse SDK 4.0 is the next generation platform for building

Eclipse-based tools and rich client desktop applications. This new release makes it easier for developers to develop and assemble applications and tools based on the Eclipse platform.

• The 4.0 release is for early adopters that want to test backwards compatibility and migrate their plug-ins and RCP applications. We expect Eclipse end users will adopt a future release of Eclipse 4.x.

• http://www.eclipse.org/eclipse4/

• Eclipse SDK I20110407-2200-win32.zip

Not support to setup Android ADT

Page 26: Eclipse & android setup

Eclipse Modeling Tools• This modeling package contains a collection of Eclipse Modeling

Project components, including EMF, GMF, MDT XSD/OCL/UML2, M2M, M2T, and EMFT elements. It includes a complete SDK, developer tools and source code.

• Note that the Modeling package includes some incubating components, as indicated by feature numbers less than 1.0.0 on the feature list.