1 / 36

02.1. Getting Started Android

02.1. Getting Started Android. Prof. Oum Saokosal Master of Engineering in Information Systems, South Korea 855-12-252-752 oum_saokosal@yahoo.com. System Requirements for Android. System Supported: Windows XP, Vista, 7, 8 Mac OS X 10.4.8 or later (x86 only)

Download Presentation

02.1. Getting Started Android

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. 02.1. Getting Started Android Prof. OumSaokosal Master of Engineering in Information Systems, South Korea 855-12-252-752 oum_saokosal@yahoo.com

  2. System Requirements for Android • System Supported: • Windows XP, Vista, 7, 8 • Mac OS X 10.4.8 or later (x86 only) • Linux (tested on Linux Ubuntu Dapper Drake) • Android Developer Tools* http://developer.android.com/sdk/index.html • JDK 6 or later http://www.oracle.com/technetwork/java/javase/downloads/index.html

  3. Android Developer Tools New

  4. Android Developer Tools (Eclipse + Android SDK) No more configuration!

  5. Android Developer Tools

  6. Update New SDK To update, go to menu: Window Android SDK Manager

  7. Create HelloWorld Project

  8. Create HelloWorld Project File > New > Android Application Project

  9. Understanding ADT

  10. Structure of Android App A controller contained java codes In bin folder, there is the apk file. Image folders The layout is a user interface(UI) Menu is for a menu Configuration file

  11. Layout (activity_main.xml) - UI

  12. Layout (activity_main.xml) - Code

  13. MainActivity.java

  14. Run a Project

  15. Run a Project • Before running a project, you need to add two important panels: 1. Window -> Show View -> Console 2. Window -> Show View -> Other -> Logcat These panels help you to see the errors.

  16. Configure Run Menu Run-> Run Configuration Right click on Android Application -> New

  17. -> Click Browse

  18. -> Choose HelloWorld

  19. -> Change Name to HelloWorld

  20. -> Click Target tap -> Click Manager button

  21. -> Click New Button

  22. In case you want to create your own customized device:In case you want to create your own customized device:

  23. Configure it like your device:

  24. Please note that it takes some times to create the AVD. So please be patient!

  25. -> Click Run Button

  26. After waiting…

  27. Output apk from Android Device apk = Android Package An apk is the only file needed to install on your real android device!

  28. Run apk onto a Real Android Device

  29. Run Directly on a Connect Device On your android device, go to setting -> locate and tick on "USB Debugging " that mostly in Developer options Connect your device to a computer, and might installed a correct driver

  30. In Eclipse, configure run again: Click Run to directly run on your real device. If it is not working, check step 1 again.

  31. Install apk into Android Device Copy your app, e.g. HelloWorld.apk, into your Android device. On your device, go to Setting -> More-> Security-> Unknown Sources  Browse the app in your device, then click to install.

  32. Go on to the next slide

More Related