Presentation is loading. Please wait.

Presentation is loading. Please wait.

A N I NTRODUCTION TO A NDROID P ROGRAMMING Xinfeng Li CSE OSU.

Similar presentations


Presentation on theme: "A N I NTRODUCTION TO A NDROID P ROGRAMMING Xinfeng Li CSE OSU."— Presentation transcript:

1 A N I NTRODUCTION TO A NDROID P ROGRAMMING Xinfeng Li CSE OSU

2 O UTLINE A big picture of Android Set up development environment Demo and examples References

3 W HAT IS A NDROID 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)

4 A NDROID A RCHITECTURE

5 S ET UP A NDROID D EVELOPMENT E NVIRONMENT Step 1: Computer environment Step 2: SDK and ADT installation Step 3: Adding platforms and components Step 4: Setting up a device for development

6 S TEP 1: C OMPUTER E NVIRONMENT Operating systems: Windows, Mac OS, Linux Java: JDK (Java SE Development Kit 6 ) Eclipse: Eclipse IDE for Java Developers

7 S TEP 2: SDK AND ADT I NSTALLATION 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 )

8 S TEP 3: A DDING P LATFORMS AND C OMPONENTS

9 S TEP 4: S ETTING UP A D EVICE FOR D EVELOPMENT 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 …

10 D EMO AND E XAMPLES Project directory structure Hello, world! Debug tools adb logcat

11 Q&A Any questions?

12 R EFERENCES  Android Developer. http://developer.android.com/index.html http://developer.android.com/index.html  Google IO (2008 - 2011). https://sites.google.com/site/io/ 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 http://grail.cba.csuohio.edu/~matos/notes/cis- 493/Android-Syllabus.htm


Download ppt "A N I NTRODUCTION TO A NDROID P ROGRAMMING Xinfeng Li CSE OSU."

Similar presentations


Ads by Google