1 / 36

Setup Android SDK on Windows

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.

kimi
Download Presentation

Setup Android SDK on Windows

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 4 March 2011 Setup Android SDK on Windows

  2. Outline • Download Android SDK • Download JDK • Install Android SDK • Download Eclipse • Setup Ecilpse • Setup Emulator • Import Project • Appendix

  3. Software Requirement • Android SDK r-10 windows • JDK 6u24 • Eclipse 3.6.2

  4. Download Android SDK • http://developer.android.com/sdk/index.html

  5. Download JDK • http://www.oracle.com/technetwork/java/javase/downloads/index.html

  6. Download JDK

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

  8. Install JDK • Clink jdk-6u24-windwos-i586.exe

  9. Install Android SDK • Click installer_r10-windows.zip • Unzip to c:\ • Open C:\android-sdk-windows\SDK Manager.exe

  10. 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

  11. Install Android SDK

  12. Setup Ecilpse (1) • Help->Install New Software

  13. Setup Ecilpse (2) • Add

  14. 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)

  15. Setup Eclipse (4) • If connection ok. Display like this. • Select all and next (This may take a few hours)

  16. Setup Eclipse (6) • Select & Press OK…… 2 3 4 1 5

  17. Setup Eclipse (7) • Windows->Preferences

  18. 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

  19. 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!!

  20. Setup Emulator (3) 1 2 3 4 press “Create AVD” now!!

  21. Launch Emulator (1) • Select device and press start 1 2

  22. Launch Emulator (2) • You can change scale rate if you want 1 2

  23. Launch Emulator (3) • Wait about 3~5min

  24. 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

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

  26. Appendix

  27. 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

  28. 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.

  29. Console

  30. DDMS

  31. Doxygen (1) • Open config file

  32. Doxygen (2) • Set parameter

  33. Doxygen (3) • Run 1 2

  34. SQLite DB Browser • SQLite DB Edit Tutorial.docx

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

  36. Keywords • Dialog • Layout • Intent • Keyboard event & Event Listener • http://developer.android.com/reference/packages.html

More Related