180 likes | 198 Views
Introduction to Android. From “ Android: How to Program” By Paul Deitel and Harvey Deitel. Brief Android History.
E N D
Introduction to Android From “Android: How to Program” By Paul Deitel and Harvey Deitel
Brief Android History • The version history of the Android mobile operating system began with the release of the Android beta in November 2007. The first commercial version, Android 1.0, was released in September 2008. Android is under ongoing development by Google and the Open Handset Alliance, and has seen a number of updates to its base operating system since its original release. These updates typically fix bugs and add new features.
Brief Android History • Since April 2009, Android versions have been developed under desert codenames and released in alphabetical order: Cupcake, Donut, Eclair, Froyo, Gingerbread, Honeycomb, Ice Cream Sandwich, and Jelly Bean. • As of 2013, over 500 million active devices use the Android OS worldwide.[1The most recent major Android update was Jelly Bean 4.2, which was released on commercial devices in November 2012.
Brief Android History Android 1.0 (API level 1) Android 1.1 (API level 2) Android 1.5 Cupcake (API level 3) Android 1.6 Donut (API level 4) Android 2.0 Eclair (API level 5) Android 2.01 Eclair (API level 6) Android 2.1 Eclair (API level 7) Android 2.2–2.2.3 Froyo (API level 8) Android 2.3–2.3.2 Gingerbread (API level 9) Android 2.3.3–2.3.7 Gingerbread (API level 10) Android 3.0 Honeycomb (API level 11) Android 3.1 Honeycomb (API level 12) Android 3.2 Honeycomb (API level 13) Android 4.0–4.0.2 Ice Cream Sandwich (API level 14) Android 4.0.3–4.0.4 Ice Cream Sandwich (API level 15) Android 4.1 Jelly Bean (API level 16) Android 4.2 Jelly Bean (API level 17)
Using Emulator The Android SDK includes a virtual mobile device emulator that runs on your computer. The emulator lets you prototype, develop and test Android applications without using a physical device. The Android emulator mimics all of the hardware and software features of a typical mobile device, except that it cannot place actual phone calls. It provides a variety of navigation and control keys, which you can "press" using your mouse or keyboard to generate events for your application. It also provides a screen in which your application is displayed, together with any other active Android applications. http://developer.android.com/tools/devices/emulator.html
Differences Between Physical and Emulator Versions The Android SDK includes a mobile device emulator — a virtual mobile device that runs on your computer. The emulator lets you develop and test Android applications without using a physical device.
Android Projects • Each Android App will be in its own Project folder with its own package name. The Project folder will include many resources for your program that we will discuss in the weeks to come. Whenever you turn in your Android App, you will need to ZIP the whole Project folder and submit the ZIP file.
The Doodlz Project • For your first sample project, you will download and import the Doodlz project. This is a Project that is provided with the Textbook Resources. You will find the ZIP file for the project on the class website, which you must download and then import. Got to File / Import and then choose “Select Archive File”. Then find the ZIP you just downloaded, and click on the Finish button. • Doodlz.zip
The AndroidDoveFlock Project • For your second sample project, you will create a new project from scratch, however, all the code you will use will be provided for you. The Project’s name will be the AndroidDoveFlock, and your Main Activity name will be AndroidDoveFlockActivity, the programs you will load are: • AndroidDove.java • FlockingAndroidDove.java • RunFlock.java
The AndroidDoveFlock Project • For your AndroidDoveFlockActivity, you must add the following code above the onCreate() method: • private static RunFlockrunFlock; // drawing View • And inside the onCreate method as the last two lines: • runFlock = new RunFlock(this); • setContentView(runFlock);