Setup Android SDK on Windows

Post on 23-Feb-2016

97 views 0 download

Tags:

description

4 March 2011. Setup Android SDK on Windows. Outline. Download Android SDK Download JDK Install Android SDK Download Eclipse Setup Ecilpse Setup Emulator Import Project Appendix. Software Requirement. Android SDK r-10 windows JDK 6u24 Eclipse 3.6.2. Download Android SDK. - PowerPoint PPT Presentation

transcript

Setup Android SDK on Windows4 March 2011

Outline

Download Android SDK Download JDK Install Android SDK Download Eclipse Setup Ecilpse Setup Emulator Import Project Appendix

Software Requirement

Android SDK r-10 windows JDK 6u24 Eclipse 3.6.2

http://developer.android.com/sdk/index.html

Download Android SDK

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Download JDK

Download JDK

http://download.eclipse.org/ Unzip Eclipse to C:\

Download Eclipse

Install JDK

Clink jdk-6u24-windwos-i586.exe

Click installer_r10-windows.zip Unzip to c:\ Open C:\android-sdk-windows\SDK

Manager.exe

Install Android SDK

Install Android SDK

Accept Android SDK Platform-tools, revision3 SDK Platrorm Android 2.2, API8, revision

2 Samples for SDK API 8,revision1 Google APIs by Google Inc., Android

API8, revision2 Reject

Other

Install Android SDK

Help->Install New Software

Setup Ecilpse (1)

Add

Setup Ecilpse (2)

Name: Android Location:

http://dl-ssl.google.com/android/eclipse *(If connection refuse, change like this:Location:

https://dl-ssl.google.com/android/eclipse)

Setup Eclipse (3)

Setup Eclipse (4)

If connection ok. Display like this. Select all and next (This may

take a few hours)

Select & Press OK……

Setup Eclipse (6)

1

23

45

Windows->Preferences

Setup Eclipse (7)

Window-> Android SDK and AVD Manager

New Virtual Device (Don’t forget install driver if you want to use “Real Android

Device”)

Setup Emulator (1)

1

Name: The device name you want Target: Android 2.2 Size: 200MiB Select Built-in:WVGA854 Don’t press “Create AVD” now!!

Setup Emulator (2)

Setup Emulator (3)1

23

4

press “Create AVD” now!!

Select device and press start

Launch Emulator (1)

1

2

You can change scale rate if you want

Launch Emulator (2)

1

2

Wait about 3~5min

Launch Emulator (3)

Reference

Setup Android Platform http://code.google.com/p/androidbmi/wiki/InstallAndroid

Android UI http://code.google.com/p/androidbmi/wiki/AndroidUI

Create a project http://code.google.com/p/androidbmi/wiki/ReadSource

Reference

Hello World Example http://developer.android.com/guide/tutorials/hello-world.html

Appendix

Project Architecture src\ :source code

xxx.java gen\ :auto generate files

R.java auto create (don’t edit it!) res\ : source file

drawable\ images layout\ layout setting▪ main.xml

values\ parameter▪ string.xml

AndroidManifest.xml : permission

adb commands

adb push <local file> <device file> adb pull <device file> <local file> adb shell Don’t forget to put file on sdcard Move file to sdcard

You can use “adb push” Or use sdcard reader to move file.

Console

DDMS

Doxygen (1)

Open config file

Doxygen (2)

Set parameter

Doxygen (3)

Run 1

2

SQLite DB Browser

SQLite DB Edit Tutorial.docx

Keywords

Hierarchy Viewer Activity & View XML UI Layout R.java AndroidManifest.xml ListView & ListAdaper

Keywords

Dialog Layout Intent Keyboard event & Event Listener http://developer.android.com/referen

ce/packages.html