Presentation is loading. Please wait.

Presentation is loading. Please wait.

UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.

Similar presentations


Presentation on theme: "UFCFX5-15-3Mobile Device Development Android Development Environments and Windows."— Presentation transcript:

1 UFCFX5-15-3Mobile Device Development Android Development Environments and Windows

2 UFCFX5-15-3Mobile Device Development 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 UFCFX5-15-3Mobile Device Development 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 UFCFX5-15-3Mobile Device Development 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 UFCFX5-15-3Mobile Device Development Android Device Drivers in PC Device Manager

6 UFCFX5-15-3Mobile Device Development Configure your Android device for development

7 UFCFX5-15-3Mobile Device Development Enable developer option in Nexus 7

8 UFCFX5-15-3Mobile Device Development Adb driver not recognized??

9 UFCFX5-15-3Mobile Device Development 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 UFCFX5-15-3Mobile Device Development SDK Manager

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

12 UFCFX5-15-3Mobile Device Development 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 UFCFX5-15-3Mobile Device Development 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 UFCFX5-15-3Mobile Device Development Eclipse User Interface Default Layout Key features Autocomplete Refactor Auto-format Debug UI

15 UFCFX5-15-3Mobile Device Development Import an android project

16 UFCFX5-15-3Mobile Device Development Configure an android project Configure library Change android version Compile and export APK

17 UFCFX5-15-3Mobile Device Development Debug User Interface Watch Variable Set breakpoint

18 UFCFX5-15-3Mobile Device Development LogCat Red event means serious error or exception

19 UFCFX5-15-3Mobile Device Development Create new activity

20 UFCFX5-15-3Mobile Device Development Create a Android Virtual Device Most important Screen size and resolution Android version

21 UFCFX5-15-3Mobile Device Development Alternative Android Emulator GenyMotion 1.Available for windows, mac & linux 2.Use Virtual Box 3.Fast as it uses hardware acceleration 4.GPS emulator 5.Eclipse plugin is available

22 UFCFX5-15-3Mobile Device Development 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 UFCFX5-15-3Mobile Device Development Development software and languages (Windows Phone Apps) Development Languages: C#, VB Visual UI design Publish package: XAP file

24 UFCFX5-15-3Mobile Device Development 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 UFCFX5-15-3Mobile Device Development 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 UFCFX5-15-3Mobile Device Development 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.


Download ppt "UFCFX5-15-3Mobile Device Development Android Development Environments and Windows."

Similar presentations


Ads by Google