360 likes | 456 Views
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)
E N D
02.1. Getting Started Android Prof. OumSaokosal 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) • 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
Android Developer Tools (Eclipse + Android SDK) No more configuration!
Update New SDK To update, go to menu: Window Android SDK Manager
Create HelloWorld Project File > New > Android Application Project
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
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.
Configure Run Menu Run-> Run Configuration Right click on Android Application -> New
-> Click Target tap -> Click Manager button
In case you want to create your own customized device:In case you want to create your own customized device:
Please note that it takes some times to create the AVD. So please be patient!
Output apk from Android Device apk = Android Package An apk is the only file needed to install on your real android device!
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
In Eclipse, configure run again: Click Run to directly run on your real device. If it is not working, check step 1 again.
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.