1 / 29

Introduction to Android

To help get us all up to speed when it is time to install the SDK please make sure Eclipse is installed (3.4 or higher) (32/64 bit all versions on CD) A current JDK is installed (Linux rpm, or Windows on CD, Mac sorry)

tieve
Download Presentation

Introduction to Android

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. To help get us all up to speed when it is time to install the SDK please make sure • Eclipse is installed (3.4 or higher) (32/64 bit all versions on CD) • A current JDK is installed (Linux rpm, or Windows on CD, Mac sorry) • You get a copy of the SDK installer (any OS) off one of the CDs being passed around (or the Jump Drive) • You can copy the android-sdk folder if you are on a windows machine (2.1-2.3 packages already) Introduction to Android Ross Hendrickson SSID: SolidStateDepot Pass: 2200Central

  2. What we hope to do today • Go through a 10,000 foot overview of Android • Talk about Mobile development • Talk about key parts of building an Android App • Get the SDK up • Get Eclipse talking with your device or a virtual one • Get everyone building a hello world app • If we get to it - a temperature converter app

  3. History • 2005 – Google Buys Android, Inc • 2007 – Open Handset alliance announced • 2008 – G1 Device released • 2009 – Cupcake, Donut, Éclair • 2010 – Android 2nd most sold

  4. Android Overview • Open Handset Alliance • Dozens of Manufacturers, Carriers, Software Companies • Comprehensive (all in one) • Developers, write once -> deploy to many devices • Users, massive level of customization (if so desired) • Entire OS Source Code available • Why do we care? Why should we care? • Why do manufacturers care?

  5. Advantages of Android • Linux • Portability • Security • 100 million devices May of 2011 • 550K activations daily Why do we care? Regardless of how the i-devices are doing Android is still a big player in the mobile arena

  6. Java Java and Android Java

  7. Native Libraries in Android • Native Libraries • Webkit • SQLite • Apache Harmony • OpenGL • OpenSSL

  8. So where are we?

  9. Important Android Building Blocks • Activities - Represents the presentation layer of an Android application, e.g. a screen which the user sees. An Android application can have several activities and it can be switched between them during runtime of the application. • Intents - are asynchronous messages which allow the application to request functionality from other services or activities. An application can call directly a service or activity (explicit intent) or ask the Android system for registered services and applications for an intent (implicit intents). 

  10. Blocks cont’d • Services - perform background tasks without providing an UI. They can notify the user via the notification framework in Android. • Content Provider - provides data to applications, via a content provider your application can share data with other applications. Android contains a SQLite DB which can serve as data provider • Broadcast Receiver - receives system messages and implicit intents, can be used to react to changed conditions in the system. An application can register as a broadcast receiver for certain events and can be started if such an event occurs.

  11. Alright, lets create something Create Responsibly!

  12. Quick Start ADT Plugin • Start Eclipse, then select Help > Install New Software.... • ClickAdd, in the top-right corner. • In the Add Repository dialog that appears, enter "ADT Plugin" • for the Name and the following URL for the Location: • https://dl-ssl.google.com/android/eclipse/ • ClickOK • Note: If you have trouble acquiring the plugin, try using "http" in the Location • URL, instead of "https" (https is preferred for security reasons). • In the Available Software dialog, select the checkbox next to Developer Tools and click Next. • In the next window, you'll see a list of the tools to be downloaded. Click Next. • Read and accept the license agreements, then click Finish. • Note: If you get a security warning saying that the authenticity or validity of the • software can't be established, click OK.. • 6. When the installation completes, restart Eclipse.

  13. Lets create a new Android Project

  14. AndroidManifest.xml

  15. XML buh bye

  16. Activities

  17. Activity Life Cycle

  18. Main.xml, Strings, R.java etc.

  19. USB Mania Nexus One, G1, Ion, myTouch 3G, Droid, Nexus S http://developer.android.com/sdk/win-usb.html Everyone else http://developer.android.com/sdk/oem-usb.html

  20. Intents • Anyone worked with Listeners? • Explicit versus Implicit

  21. Services

  22. Content Provider

  23. Broadcast Reciever

  24. Temperature www.savorywatt.com/uploads/temperature_handout.pdf

More Related