an introduction to android programming

12
AN INTRODUCTION TO ANDROID PROGRAMMING Xinfeng Li CSE OSU

Upload: damian-lott

Post on 31-Dec-2015

38 views

Category:

Documents


1 download

DESCRIPTION

An Introduction to Android Programming. Xinfeng Li CSE OSU. Outline. A big picture of Android Set up development environment Demo and examples References. What is Android. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: An Introduction to Android Programming

AN INTRODUCTION TO ANDROID PROGRAMMINGXinfeng Li

CSE OSU

Page 2: An Introduction to Android Programming

OUTLINE

A big picture of Android

Set up development environment

Demo and examples

References

Page 3: An Introduction to Android Programming

WHAT IS ANDROID

Android is an operating system for mobile devices such as smartphones and tablet computers. It is developed by the Open Handset Alliance led by Google.

Android has beaten Apple iOS, being the leading mobile operating system from first quarter of 2011

Version: Android 1.0, 1.1 to 1.5 (Cupcake), 1.6 (Donut), 2.0/2.1 (Eclair), 2.2 (Froyo), 2.3 (Gingerbread), to 3.0 (Honeycomb), 4.0 (Ice Cream Sandwich)

Page 4: An Introduction to Android Programming

ANDROID ARCHITECTURE

Page 5: An Introduction to Android Programming

SET UP ANDROID DEVELOPMENT ENVIRONMENT

Step 1: Computer environment

Step 2: SDK and ADT installation

Step 3: Adding platforms and components

Step 4: Setting up a device for development

Page 6: An Introduction to Android Programming

STEP1: COMPUTER ENVIRONMENT

Operating systems: Windows, Mac OS, Linux

Java: JDK (Java SE Development Kit 6)

Eclipse: Eclipse IDE for Java Developers

Page 7: An Introduction to Android Programming

STEP 2: SDK AND ADT INSTALLATION

Download Android SDK: android-sdk_r14-XXX Unpack .zip or .tgz file Run .exe file

Installing the ADT Plugin Downloading the ADT Plugin (Help > Install New

Software…) Configuring the ADT Plugin

(Window > Preferences, => Android  > SDK Location)

Page 8: An Introduction to Android Programming

STEP 3: ADDING PLATFORMS AND COMPONENTS

Page 9: An Introduction to Android Programming

STEP 4: SETTING UP A DEVICE FOR DEVELOPMENT

Computer Windows: install Google Windows USB driver or

OEM USB driver Linux: add a udev rules file that contains a USB

configuration with ATTR{idVendor} Mac OS X: OK!

Phone Settings > Applications > Development and

enable USB debugging Android Virtual Device

AVD manager > Virtual devices > New…

Page 10: An Introduction to Android Programming

DEMO AND EXAMPLES

Project directory structure

Hello, world!

Debug tools adb logcat

Page 11: An Introduction to Android Programming

Q&A

Any questions?

Page 12: An Introduction to Android Programming

REFERENCES

Android Developer. http://developer.android.com/index.html

Google IO (2008 - 2011). https://sites.google.com/site/io/

Course of Prof. Matos in Cleveland State University. http://grail.cba.csuohio.edu/~matos/notes/cis-493/Android-Syllabus.htm