You are on page 1of 11

At a glance of Android

Engr. Md. Suzon IEB-M/28465

Agenda
History

Architecture Application Components Resources Organizing & Accessing


Activities Services Broadcast Receivers Content Providers Fragments Intents and Filters User Interface (UI)

Versioning

Android Advanced Concepts


Drag and Drop Notifications Based Services Sending Email Sending SMS Phone Calls Android Application

UI Layouts UI Controls Event Handling Styles and Themes Custom Components

Android Environment Setup Android Hello World Example

By: Engr. Md. Suzon


IEB-M/28465

History
Android mobile operating system began with the release of the Android beta in November 2007 by Google Initially developed by Android, Inc. Android Inc. is bought by Google in 2005 Android 1.0, was released in September 2008

By: Engr. Md. Suzon


IEB-M/28465

History versioning

By: Engr. Md. Suzon


IEB-M/28465

Architecture

By: Engr. Md. Suzon


IEB-M/28465

Architecture Cont.
Linux kernel
Used Linux - Linux 2.6 with approximately 115 patches. This provides basic system functionality (process management, memory management, device management like camera, keypad, display etc.) On top of Linux kernel there is a set of libraries including Open-source Web browser engine WebKit SQLite database used for useful repository storage Sharing of application data, libraries to play and record audio and video, SSL etc.

Libraries

Android Runtime

Application Framework Applications

Dalvik Virtual Machine & Java Virtual Machine which is specially designed and optimized for Android. The Application Framework layer provides many higher-level services Example: .... You will write your application to be installed on this layer only. Examples: we will develop ankur, mrittika, protikar, vistar etc here

By: Engr. Md. Suzon


IEB-M/28465

Application Components
Activities
They dictate the UI and handle the user interaction to the Smartphone screen. Example of code: public class MainActivity extends Activity { //TODO: here is your code } They handle background processing associated with an application. Example of code: public class MyService extends Service { //TODO: here is your code } They handle communication between Android OS and applications. Example of code: public class MyReceiver extends BroadcastReceiver { //TODO: here is your code } They handle data and database management issues. Example of code: public class MyContentProvider extends ContentProvider { //TODO: here is your code }

Services

Broadcast Receivers

Content Providers

By: Engr. Md. Suzon


IEB-M/28465

Components Cont. Additional Components


Fragments Views
Represents a behavior or a portion of user interface in an Activity. UI elements that are drawn onscreen including buttons, lists forms etc. View hierarchies that control screen format and appearance of the views. Messages wiring components together. External elements, such as strings, constants and drawables pictures. Configuration file for the application.

Layouts Intents

Resources

Manifest

By: Engr. Md. Suzon


IEB-M/28465

Basic Project Structure

By: Engr. Md. Suzon


IEB-M/28465

Android Environment Setup


Android SDK will run on:
Microsoft Windows XP or later version. Mac OS X 10.5.8 or later version with Intel chip. Linux including GNU C Library 2.7 or later.

Required tools to develop Android applications are freely available:


Java JDK5 or JDK6 Android SDK Android Development Tools (ADT) Eclipse Plugin (optional) IntelliJ IDEA Free and Open Source IDE for Android Development

Step 1
Step 2

Setup Java Development Kit (JDK) & set PATH Setup Android SDK Setup Eclipse IDE Setup Android Development Tools (ADT) Plugin Create Android Virtual Device Create an android sample project on you Editor

Step 3: Step 4:

Step 5:
Step 6:

Run and Enjoy

By: Engr. Md. Suzon


IEB-M/28465

References
There are many & more references on the web, some are below:
http://developer.android.com/design/index.html http://en.wikipedia.org/wiki/Android_(operating_system) http://en.wikipedia.org/wiki/Android_version_history http://en.wikipedia.org/wiki/Mobile_operating_system http://www.codeproject.com/Articles/102065/Android-A-beginner-sguide http://www.tutorialspoint.com/android/index.htm http://www.vogella.com/tutorials/Android/article.html http://www.coreservlets.com/android-tutorial/

By: Engr. Md. Suzon


IEB-M/28465