360 likes | 587 Views
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.
E N D
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 • http://developer.android.com/sdk/index.html
Download JDK • http://www.oracle.com/technetwork/java/javase/downloads/index.html
Download Eclipse • http://download.eclipse.org/ • Unzip Eclipse to C:\
Install JDK • Clink jdk-6u24-windwos-i586.exe
Install Android SDK • Click installer_r10-windows.zip • Unzip to c:\ • Open C:\android-sdk-windows\SDK Manager.exe
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
Setup Ecilpse (1) • Help->Install New Software
Setup Ecilpse (2) • Add
Setup Eclipse (3) • 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 (4) • If connection ok. Display like this. • Select all and next (This may take a few hours)
Setup Eclipse (6) • Select & Press OK…… 2 3 4 1 5
Setup Eclipse (7) • Windows->Preferences
Setup Emulator (1) • Window-> Android SDK and AVD Manager • New Virtual Device • (Don’t forget install driver if you want to use “Real Android Device”) 1
Setup Emulator (2) • Name: The device name you want • Target: Android 2.2 • Size: 200MiB • Select Built-in:WVGA854 • Don’t press “Create AVD” now!!
Setup Emulator (3) 1 2 3 4 press “Create AVD” now!!
Launch Emulator (1) • Select device and press start 1 2
Launch Emulator (2) • You can change scale rate if you want 1 2
Launch Emulator (3) • Wait about 3~5min
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
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.
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/reference/packages.html