Presentation is loading. Please wait.

Presentation is loading. Please wait.

Android Development Introduction to Android Development 2011/01/16

Similar presentations


Presentation on theme: "Android Development Introduction to Android Development 2011/01/16"— Presentation transcript:

1 Android Development Introduction to Android Development 2011/01/16
Copyright © 2010, 2011 by Lawrence Wong. All Rights Reserved.

2 What is Android Open Platform for Mobile Development
Handsets, Tablets, Devices Apps and services

3 Goals Ecosystem Platform Tools Run Simple Projects Resources

4 Milestones Android Inc acquired by Google, July 2005
OHA, 5 November 2007 Android Market, 22 October 2008 T-Mobile G1, November 2008 Android Developer Challenge Leading market share, December 2010

5 OHA Google Members Almost all major Carriers, OEM. Except NARMHP

6 Android Platform Android Stack Built upon Linux
Java, c/c++, JavaScript vs iOS, Black Berry, WinPhone7, Symbian

7 Open Platform Open Source Royalty-free Free to branch and customize
No approval needed for Android Market Free to download from multiple markets

8 Android and Java NOT JavaME Dalvik VM instead of JVM
- register-based vs stack-based - more efficient and compact implementation. Component Reuse through Intent

9 SDK setup * JDK 5/6 Eclipse Helios for Java ADT plugin SDK download
Platform Tools AVD

10 Tools * Link IDE adb debugger DDMS monkey

11 Hello World Real Example Eclipse IDE, Debugger, DDMS Emulator

12 Break Continue at 1:00pm

13 Phone Setup for development * USD Drivers(Windows only)
Phone vs Emulator advantages sensors, camera, telephony, speed, Power drain, location

14 Application Native Apps and Web Apps apk file
1 Application ~ 1 Dalvik VM ~ 1 Linux Process

15 Parts of an Application
Android Manifest R.java res/ assets/

16 Activity Interacts with user in foreground Runs in UI thread
Presents window to user Activity life cycle diagram Managed by Android

17 Intents Component reuse Implicit Intents Explicit Intents

18 Phone Call Example Permissions Implicit Intents

19 Service Life cycle diagram Long-running background operation
Supply functionality for other apps Runs in main thread

20 Service Demo Example Plays music in background
Do not need user interaction once started

21 Tool: Debugger Stopping, Stepping through code Examine variable values
Logcat output

22 Tool: monkey Stress testing your app parameters

23 User Interfaces Basic UI Elements Layouts Views

24 Layouts Width Height LinearLayout RelativeLayout

25 Views TextView EditText ImageView ListView

26 ToDo List Example Project import Run Debug Improve

27 Others MediaPlayer Content Provider Broadcast Receiver Adapter
Sqlite3 database

28 Statistics Apps on Android Market - 100000+
Platform versions percentages Android Market Share

29 Resources developer.android.com android.git.kernel.org code.google.com
stackoverflow.com

30 Announcements Alameda Android Meetup App challenge
Android DevCamp March 4-6 Google I/O 2011, May 10-11

31 Goals recap Ecosystem Platform Tools Projects Resources

32 System Requirements OS : Linux, Windows or Mac OS. Phone Requirements


Download ppt "Android Development Introduction to Android Development 2011/01/16"

Similar presentations


Ads by Google