1 / 26

Mobile Device Development

Mobile Device Development. Android Development Environments and Windows. Agenda. Software and hardware Connect the android device to a PC Install and configure the Android SDK Eclipse User Interface Create and Configure the Android Emulator Windows App Development Environment.

vera-turner
Download Presentation

Mobile Device Development

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. Mobile Device Development Android Development Environments and Windows

  2. Agenda • Software and hardware • Connect the android device to a PC • Install and configure the Android SDK • Eclipse User Interface • Create and Configure the Android Emulator • Windows App Development Environment

  3. Software and Hardware • Hardware • Windows PC (Windows XP, Vista and 7). • An Android phone or tablet with a mini USB cable • Software • Java SE Development Kit (JDK) • Eclipse • ADT plugin for Eclipse • Android SDK (Download from develper.android.com) • USB driver for the android device

  4. Connect the Android Device to a PC • Use software packages from device manufacturer For example, Samsung Kies and HTC Sync Manager Download from manufacturer support website. • Use the USB driver Download from device manufacturer or third-party website • Use the generic USB driver from Google

  5. Android Device Drivers in PC Device Manager

  6. Configure your Android device for development

  7. Enable developer option in Nexus 7

  8. Adb driver not recognized??

  9. Install and configure the Android SDK • Download android SDK ADT Bundle for Windows from developer.android.com. Bundle includes Eclipse, ADT plugin for android, Android SDK. • Run SDK Manager.exe as administrator Download all SDKs for all android level/version. Download extra library and tools.

  10. SDK Manager

  11. SDK Tools • Android Debug Bridge (adb). • A client-server program • Often use it to install app into device or emulator • Can be found in <sdK>/platform-tools • Device Monitor. • Often use it to capture screenshot • Can be found in <sdK>/tools/monitor.bat • Logcat (The android logging system)

  12. ADB usages • Install apps to android devices from PC • adb –d install xxx.apk • Install apps to android emulator. • adb install xxx.apk • Kill and restart adb thread • adb kill-server • adb start-server • Copy files from PC to android devices • adb push foo.txt /sdcard/ -d for direct an adb command to the only attached USB device

  13. Unlock the device (advanced features) • Unlock your devices for installing customized android ROM • To unlock • adb reboot bootloader • fastboot devices • fastboot oem unlock • Install recovery image • fastboot flash recovery your_recovery_image.img • Install customized ROM • adb push customizeRom.zip /sdcard/ • Install zip from recovery menu

  14. Eclipse User Interface Key features Autocomplete Refactor Auto-format Debug UI Default Layout

  15. Import an android project

  16. Configure an android project Configure library Change android version Compile and export APK

  17. Debug User Interface Watch Variable Set breakpoint

  18. LogCat Red event means serious error or exception

  19. Create new activity

  20. Create a Android Virtual Device Most important Screen size and resolution Android version

  21. Alternative Android Emulator • GenyMotion • Available for windows, mac & linux • Use Virtual Box • Fast as it uses hardware acceleration • GPS emulator • Eclipse plugin is available

  22. Windows Apps for Phone and Tablet • App development for Windows Phone 7 • Windows PC (Vista, 7 or 8) • Visual Studio 2010 or higher • Windows Phone SDK 7.x or 8.x • App development for Windows Phone 8 • Windows 8 PC • Visual Studio Express 2012 for Windows Phone (FREE) • Windows Phone SDK 8.x • App development for Windows Store Apps • Windows 8 PC • Visual Studio Express 2012 for Windows 8 (FREE) • SDK for Windows 8

  23. Development software and languages (Windows Phone Apps) Development Languages: C#, VB Visual UI design Publish package: XAP file

  24. Test phone app in the real device • Open a developer account ($19 USD per year) • Register phone in the development account • Connect phone with Windows PC using a USB cable • Run PhoneReg.exe (under directory of Windows Phone/v8.0/Tools) • Make sure to unlock the phone screen • Make sure that date and time are correct • Deploy app via “Build menu” and “Deploy Solution”

  25. Test Windows 8 app in the real device • Develop the app in a touch screen Windows 8 laptop • Open a developer account ($19 USD per year) • Deploy app via menu “Start Debugging” in local machine

  26. Summary • Eclipse is the integrated development environment for Android app development. It allows apps directly deploying onto the android device via the ADT plugin. It also allows developer debugging the android codes in the real device. • Using Android emulator/android virtual device is another way to test the android app. • Official android SDK has a lot of resources and tools to help develop, test and publish the android app. • Visual Studio is the integrated development environment for both Windows Phone app and Windows Store app development. C# can be used for both phone and Windows tablet app development.

More Related