A consortium of technology companies including Google, device manufacturers, wireless carriers, chipset makers was formed n November 5, 2007 and was named as the Open Handset Alliance. The goal of the Open Handset Alliance is to develop open standards for mobile devices. Open Handset Alliance™, a group of 84 technology and mobile companies who have come together to accelerate innovation in mobile and offer consumers a richer, less expensive, and better mobile experience.Android™, the first complete, open, and free mobile platform.
Linux based OS, applications mainly developed using Java Free and Open sourceThe Android Open Source Project is led by Google, and taskedwith the maintenance and development of Android
How I started Android programming? • Frequent calls to few contactsProblem • Status calls while driving • Create a group of contacts Solution • Call contacts successively or simultaneously • Keep speaker ON while in call
Creating a groupFor a group a user should be able to configureGroup NameLoud speakerCalling ModeContacts The group details would be saved and on the application launch the created groups would be visible
Calling the contacts in the group Parents • Mom, Dad Best Friends • Ojus, Geet, Amey
Get the Android SDK• Download JDK and the Android SDK• Install the ADT plugin for Eclipse• Download the latest SDK tools and platforms using the SDK Manager.
• An activity represents a single screen with a userActivities interface. • Eg: SMS readwrite screen. • A service is a component that runs in the background to perform long-running operations or to perform work forServices remote processes. A service does not provide a user interface • Eg: Music player running in background Content • A content provider manages a shared set of application dataproviders • Eg: Query to data stored on file system or database. • A broadcast receiver is a component that responds toBroadcast system-wide broadcast announcements • Eg: Battery Low, custom messages can be broadcasted.receivers
Android project contains AndroidManifest.xml The manifest file describes the fundamental characteristics of the app and defines each of its components. src/ Directory for your apps main source files. By default, it includes an Activity class that runs when your app is launched using the app icon. res/ Contains several sub-directories for app resources. Here are just a few: drawable-hdpi/ Directory for drawable objects (such as bitmaps) that are designed for high-density (hdpi) screens. layout/ Directory for files that define your apps user interface. values/ Directory for other various XML files that contain a collection of resources, such as string and color definitions.
Creating User Interface• Demo shown in Eclipse
Compiling and running the applicationPrograms written in Java and compiled to bytecode. They are thenconverted from Java Virtual Machine-compatible .class files to Dalvik-compatible .dex (Dalvik Executable) files before installation on a device. The programs can be installed on the virtual device by clicking Run in the eclipse editor For installing/debugging the application on a real device make sure you have installed the Sync software which came with phone and set debugging options on the phone.