Agenda Programming for Mobile Devices Google Android – an Introduction Android – Architecture Android – Basics Basic Code Demos Discussions
Programming for MobileDevices Q: Why Mobile Devices are Better then Computers. The Advantages of Mobile Computing Handheld Device access to any required information Contacts, Calendar, Quick Notes, Photo & Video, Music… Feature Phones, Smart Phones and PDA Business Opportunities – Design, Development, Testing Edutainment, Business, Infotainment, Social Networking Constraints Small Size and Low power Handsets Operating Systems, Screen Size, Memory, Processor,
Mobile Operating Systems Quick Review Symbian OS – Nokia / Samsung [Feature Phones/ Smart Phones] I-Phone – Apple iOS Black berry – Research In Motion [RIM] Blackberry OS Android – Google Android OS Windows Mobile – Microsoft Windows CE / Windows Phone 7
The Business Market of Android Share of worldwide 2011 Q2 Smartphone sales to end users by operating system, according to Gartner. Gartner, Inc. (NYSE: IT) is an information technology research and advisory firm headquartered in Stamford, Connecticut, United States.
Google Android – AnIntroduction Originally released in 2008 Open Source Platform - Android Open Source Project (AOSP) – from Google Code Project Hardware Support – Intel, ARM, HTC, Motorola and Samsung Googles proprietary applications - Maps, Calendar, and Gmail, and a full HTML web browser [a different version of Google Chrome]. Android App Store – User Generated Apps Jan 2010 – Nexus One Phone with Android OS – by Google Inc.
Android Version History 2.0 (Eclair) New web browser, Updated User interface Support for HTML5 and the W3C Geolocation API. Enhanced camera app with features like digital zoom, flash, color effects, and more. 2.1 (Eclair) Support for voice controls throughout the entire OS. Launcher, with 5 home-screens, animated backgrounds Weather app, and improved functionality in the Email and Phonebook apps.
Android Version History 3.1 (Honeycomb) Google I/O to allow honeycomb devices to directly transfer content from USB devices 3.2 (Honeycomb) incremental release Optimization for a broader range of screen sizes Load media files directly from the SD card Future releases that have been announced include: 4.0(Ice Cream Sandwich) is said to be a combination of Gingerbread and Honeycomb into a "cohesive whole". It will be released in Q4 2011
Android Basics View UI Element Button, Label, Text Field … etc Activity Single Screen UI Intent Method + Process to do any Task Launch an Activity or Send a Message, etc Content Provider Data Sharing Connectivity between apps. Service Background Process Local Local services are components that are only accessible by the application that is hosting the service Remote remote services are services that are meant to be accessed remotely by other applications running on the device.
AndroidManifest.xml AndroidManifest.xml, which is similar to the web.xml file in the J2EE world, defines thecontents and behavior of your application. For example, it lists your application’s activities and services, along with the permissions the application needs to run. Android Virtual Devices An Android Virtual Device (AVD) allows developers to test their applications without hooking up an actual Android phone. AVDs can be created in various configurations to emulate different types of real phones.