SlideShare a Scribd company logo
Swapnal Agarwal
Vipul Kishor Bhatt
1. Introduction

2. Platform

3. Software development

4. Dalvik VM

5. Components & API

6. Building Blocks

7. Layouts
Introduction
What is Android?
 • A software platform and operating system for mobile
   devices

 • Based on the Linux kernel

 • Developed by Google and later the Open Handset
   Alliance (OHA)

 • Allows writing managed code in the Java language

 • Android platform was announced on 5th November 2007
   with the founding of OHA
Android
An Open Handset Alliance Project
  What is the Open Handset Alliance (OHA)?
  •   OHA is an alliance of nearly 50 organizations devoted to
      advancing open standards for mobile devices
  •   Develop technologies that will significantly lower the cost of
      developing and distributing mobile devices and services

  What’s the Target?
  • Write apps to run on mobile phones
  • Will be released as open source
   http://code.google.com/android
Platform
Operating System(s) 
 
    •   Android uses Linux for its device drivers, memory management,
        process management, and networking.
 
    •   The next level up contains the Android native libraries. They are
        all written in C/C++ internally, but you’ll be calling them through
        Java interfaces. In this layer you can find the Surface Manager, 2D
        and 3D graphics, Media codecs, the SQL database (SQLite), and
        a native web browser engine (WebKit).
 
                                               Call through Java
                                               Call through Java
                                               Interface
                                               Interface



                                C/C++

                            Native Libraries

                            Surface Manager
                            Surface Manager
                                 SQLite
                                 SQLite
                             Media Codecs
                             Media Codecs
                                 Webkit
                                 Webkit
Platform
                                                  •   Dalvik Virtual Machine. Dalvik runs .dex files,
                                                      which are converted at compile time from
layout
layout
.xml
.xml
            R.java
            R.java                                    standard class and jar files.
                         *.class
                         *.class         *dex.
                                         *dex.
                                                  •   The Dalvik runtime is highly optimized:
            *.java
            *.java                                      Run multiple VMs efficiently
                                                        Each app has its own VM
                                                        Minimal memory footprint
          android-
          android-
          manifest.xml
          manifest.xml
                                   application.
                                     apk file     •   Android applications are compiled to Dalvik
                                                      bytecode.
Software Development
 IDE and Tools
  
 Android SDK
     •   Class Library
     •   Developer Tools
                 dx – Dalvik Cross-Assembler
                 aapt – Android Asset Packaging Tool
                 adb – Android Debug Bridge
                 ddms – Dalvik Debug Monitor Service
     •   Emulator and System Images
     •   Documentation and Sample Code


 Eclipse IDE + ADT (Android Development Tools)
     •   Reduces Development and Testing Time
     •   Makes User Interface-Creation easier
     •   Makes Application Description Easier
Components
Android APIs

Android-specific packages are easy to identify because they start with android in
the package name. Some of the more important packages are:

android.app—Android application model access
android.bluetooth—Android’s Bluetooth functionality
android.content—Accessing and publishing data in Android
android.net—Contains the Uri class, used for accessing content
android.gesture—Create, recognize, load, and save gestures
android.graphics—Graphics primitives
android.location—Location-based services (such as GPS)
android.opengl—OpenGL classes
android.os—System-level access to the Android environment
android.provider—ContentProvider-related classes
android.telephony—Telephony capability access, including support for both Code Division Multiple
Access (CDMA) and Global System for Mobile communication (GSM) devices
android.text—Text layout
android.util—Collection of utilities for logging and text manipulation, including XML
android.view—UI elements
android.webkit—Browser functionality
android.widget—More UI elements
Android APIs
Java packages included in the Android SDK:
java.lang—Core Java language classes
java.io—Input/output capabilities
java.net—Network connections
java.text—Text-handling utilities
java.math—Math and number-manipulation classes
javax.net—Network classes
javax.security—Security-related classes
javax.xml—DOM-based XML classes
org.apache.*—HTTP-related classes
org.xml—SAX-based XML classes
Android Building Blocks
       Android Manifest.xml



           Activities

             Views

            Intents

           Services

         Notifications

       Content Provider
Android Building Blocks
          Activity:
   It represents a visible               Services
  application component
       within Android


            Intents:
      An Intent in Android             Notification
    describes what you want
             to do.


          Content Provider:             Views:
    It helps data sharing between     UI elements
   different Android Applications
   or between different Activities.
Layouts
•   Different Layouts :-
                           <?xml version="1.0" encoding="utf-8"?>
                           <RelativeLayout
       Linear Layout      xmlns:android="http://schemas.android.com/apk/res/android"
                                            android:id="@+id/job_search_layout"
       Relative Layout                     android:layout_width="fill_parent"
       Table Layout                        android:layout_height="wrap_content"
       Frame Layout       <ListView        android:layout_width="wrap_content“
       Absolute Layout                         android:layout_width="wrap_content"
        (Deprecated)                        android:layout_height="wrap_content" />

                           <ImageView       android:id="@+id/geo_location“
                                                android:src="@drawable/geo_location"
                                                android:layout_width="wrap_content"
                                            android:layout_height="wrap_content" />

                            <LinearLayout      android:id="@+id/location_selection_layout“
                                                android:layout_width="wrap_content"
                                            android:layout_height="wrap_content" >

                                <TextView
                           android:id="@+id/recent_search_header_count”>
                                              android:layout_width="wrap_content"
                                          android:layout_height="wrap_content" />
                            </LinearLayout>
                           </RelativeLayout>
Activity Life Cycle
Thanks

More Related Content

PPTX
Introduction to android basics
Hasam Panezai
 
PPTX
Android introduction
Rahul Pola
 
PPT
Android application development for TresmaxAsia
Michael Angelo Rivera
 
PPT
Introduction to android
srinivasansoundar
 
DOC
Sid K
Sid K
 
PDF
Android Presentation
Bram Vandeputte
 
PPTX
Application Development - Overview on Android OS
Pankaj Maheshwari
 
DOCX
Krishnakumar Rajendran (1)
Krishna Rajendran
 
Introduction to android basics
Hasam Panezai
 
Android introduction
Rahul Pola
 
Android application development for TresmaxAsia
Michael Angelo Rivera
 
Introduction to android
srinivasansoundar
 
Sid K
Sid K
 
Android Presentation
Bram Vandeputte
 
Application Development - Overview on Android OS
Pankaj Maheshwari
 
Krishnakumar Rajendran (1)
Krishna Rajendran
 

What's hot (20)

ODP
Android basics
Berglind Ósk Bergsdóttir
 
PDF
Frontend APIs powering fast paced product iterations
Karthik Ramgopal
 
DOC
Neeraja ganesh fs-v1
Neeraja Ganesh
 
KEY
CouchConf NYC CouchApps
Bradley Holt
 
PDF
Crx 2.2 Deep-Dive
Gabriel Walt
 
DOC
Bala Sr Java Developer
Java Dev
 
PPT
Android primer
intellisenseit
 
PPTX
Web Apps atop a Content Repository
Gabriel Walt
 
DOC
Krishnagopal Thogiti_Java
Krishnagopal Thogiti
 
DOC
Santosh_Resume_Java
SANTOSH PATTNAIK
 
PDF
CQ 5.4 Deep-Dive
Gabriel Walt
 
PPTX
Introduction to Android Development Part 1
Kainda Kiniel Daka
 
PPTX
Windows Azure
Murali Krishna Alluri
 
PDF
01 02 - introduction - adroid stack
Siva Kumar reddy Vasipally
 
PDF
Optimizing HTML5 Sites with CQ5/WEM
Gabriel Walt
 
PPTX
Android- Introduction for Beginners
Tripti Tiwari
 
PPT
Android Training - Part 2
Tbldevelopment
 
PPT
Ajax toolkit framework
Sunil Kumar
 
PDF
JUDCon 2014: Gearing up for mobile development with AeroGear
prajods
 
PPT
Spring
Prashant Kumar
 
Frontend APIs powering fast paced product iterations
Karthik Ramgopal
 
Neeraja ganesh fs-v1
Neeraja Ganesh
 
CouchConf NYC CouchApps
Bradley Holt
 
Crx 2.2 Deep-Dive
Gabriel Walt
 
Bala Sr Java Developer
Java Dev
 
Android primer
intellisenseit
 
Web Apps atop a Content Repository
Gabriel Walt
 
Krishnagopal Thogiti_Java
Krishnagopal Thogiti
 
Santosh_Resume_Java
SANTOSH PATTNAIK
 
CQ 5.4 Deep-Dive
Gabriel Walt
 
Introduction to Android Development Part 1
Kainda Kiniel Daka
 
Windows Azure
Murali Krishna Alluri
 
01 02 - introduction - adroid stack
Siva Kumar reddy Vasipally
 
Optimizing HTML5 Sites with CQ5/WEM
Gabriel Walt
 
Android- Introduction for Beginners
Tripti Tiwari
 
Android Training - Part 2
Tbldevelopment
 
Ajax toolkit framework
Sunil Kumar
 
JUDCon 2014: Gearing up for mobile development with AeroGear
prajods
 
Ad

Similar to Android Introduction (20)

PPT
Android - Anroid Pproject
Vibrant Technologies & Computers
 
PDF
Android dev o_auth
lzongren
 
PDF
Android Development
mclougm4
 
PPT
My androidpresentation
niteshnarayanlal
 
PDF
Androidoscon20080721 1216843094441821-9
Gustavo Fuentes Zurita
 
PDF
Androidoscon20080721 1216843094441821-9
Gustavo Fuentes Zurita
 
PPTX
Android 101 - Introduction to Android Development
Andy Scherzinger
 
PPTX
Android Starting App Development
Paramvir Singh
 
PDF
Introduction to android
krishnastudent88
 
PPT
PPT Companion to Android
Dharani Kumar Madduri
 
PPT
Android operating system
Dev Savalia
 
PPTX
Android Applications Development: A Quick Start Guide
Sergii Zhuk
 
PDF
Android App development and test environment, Understaing android app structure
Vijay Rastogi
 
PPTX
Mobile Web Apps and the Intel® XDK
Intel® Software
 
PPTX
Crosswalk and the Intel XDK
Intel® Software
 
PPT
Android
Ravi Shankar
 
PPTX
Developing for Android-Types of Android Application
Nandini Prabhu
 
PDF
Matteo Gazzurelli - Introduction to Android Development - Have a break edition
DuckMa
 
PPTX
Ii 1300-java essentials for android
Adrian Mikeliunas
 
PPTX
Cross-Platform Development using Angulr JS in Visual Studio
Mizanur Sarker
 
Android - Anroid Pproject
Vibrant Technologies & Computers
 
Android dev o_auth
lzongren
 
Android Development
mclougm4
 
My androidpresentation
niteshnarayanlal
 
Androidoscon20080721 1216843094441821-9
Gustavo Fuentes Zurita
 
Androidoscon20080721 1216843094441821-9
Gustavo Fuentes Zurita
 
Android 101 - Introduction to Android Development
Andy Scherzinger
 
Android Starting App Development
Paramvir Singh
 
Introduction to android
krishnastudent88
 
PPT Companion to Android
Dharani Kumar Madduri
 
Android operating system
Dev Savalia
 
Android Applications Development: A Quick Start Guide
Sergii Zhuk
 
Android App development and test environment, Understaing android app structure
Vijay Rastogi
 
Mobile Web Apps and the Intel® XDK
Intel® Software
 
Crosswalk and the Intel XDK
Intel® Software
 
Android
Ravi Shankar
 
Developing for Android-Types of Android Application
Nandini Prabhu
 
Matteo Gazzurelli - Introduction to Android Development - Have a break edition
DuckMa
 
Ii 1300-java essentials for android
Adrian Mikeliunas
 
Cross-Platform Development using Angulr JS in Visual Studio
Mizanur Sarker
 
Ad

Android Introduction

  • 2. 1. Introduction 2. Platform 3. Software development 4. Dalvik VM 5. Components & API 6. Building Blocks 7. Layouts
  • 3. Introduction What is Android? • A software platform and operating system for mobile devices • Based on the Linux kernel • Developed by Google and later the Open Handset Alliance (OHA) • Allows writing managed code in the Java language • Android platform was announced on 5th November 2007 with the founding of OHA
  • 4. Android An Open Handset Alliance Project What is the Open Handset Alliance (OHA)? • OHA is an alliance of nearly 50 organizations devoted to advancing open standards for mobile devices • Develop technologies that will significantly lower the cost of developing and distributing mobile devices and services What’s the Target? • Write apps to run on mobile phones • Will be released as open source  http://code.google.com/android
  • 5. Platform Operating System(s)    • Android uses Linux for its device drivers, memory management, process management, and networking.   • The next level up contains the Android native libraries. They are all written in C/C++ internally, but you’ll be calling them through Java interfaces. In this layer you can find the Surface Manager, 2D and 3D graphics, Media codecs, the SQL database (SQLite), and a native web browser engine (WebKit).   Call through Java Call through Java Interface Interface C/C++ Native Libraries Surface Manager Surface Manager SQLite SQLite Media Codecs Media Codecs Webkit Webkit
  • 6. Platform • Dalvik Virtual Machine. Dalvik runs .dex files, which are converted at compile time from layout layout .xml .xml R.java R.java standard class and jar files. *.class *.class *dex. *dex. • The Dalvik runtime is highly optimized: *.java *.java  Run multiple VMs efficiently  Each app has its own VM  Minimal memory footprint android- android- manifest.xml manifest.xml application. apk file • Android applications are compiled to Dalvik bytecode.
  • 7. Software Development IDE and Tools   Android SDK • Class Library • Developer Tools  dx – Dalvik Cross-Assembler  aapt – Android Asset Packaging Tool  adb – Android Debug Bridge  ddms – Dalvik Debug Monitor Service • Emulator and System Images • Documentation and Sample Code Eclipse IDE + ADT (Android Development Tools) • Reduces Development and Testing Time • Makes User Interface-Creation easier • Makes Application Description Easier
  • 9. Android APIs Android-specific packages are easy to identify because they start with android in the package name. Some of the more important packages are: android.app—Android application model access android.bluetooth—Android’s Bluetooth functionality android.content—Accessing and publishing data in Android android.net—Contains the Uri class, used for accessing content android.gesture—Create, recognize, load, and save gestures android.graphics—Graphics primitives android.location—Location-based services (such as GPS) android.opengl—OpenGL classes android.os—System-level access to the Android environment android.provider—ContentProvider-related classes android.telephony—Telephony capability access, including support for both Code Division Multiple Access (CDMA) and Global System for Mobile communication (GSM) devices android.text—Text layout android.util—Collection of utilities for logging and text manipulation, including XML android.view—UI elements android.webkit—Browser functionality android.widget—More UI elements
  • 10. Android APIs Java packages included in the Android SDK: java.lang—Core Java language classes java.io—Input/output capabilities java.net—Network connections java.text—Text-handling utilities java.math—Math and number-manipulation classes javax.net—Network classes javax.security—Security-related classes javax.xml—DOM-based XML classes org.apache.*—HTTP-related classes org.xml—SAX-based XML classes
  • 11. Android Building Blocks Android Manifest.xml Activities Views Intents Services Notifications Content Provider
  • 12. Android Building Blocks Activity: It represents a visible Services application component within Android Intents: An Intent in Android Notification describes what you want to do. Content Provider: Views: It helps data sharing between UI elements different Android Applications or between different Activities.
  • 13. Layouts • Different Layouts :- <?xml version="1.0" encoding="utf-8"?> <RelativeLayout  Linear Layout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/job_search_layout"  Relative Layout android:layout_width="fill_parent"  Table Layout android:layout_height="wrap_content"  Frame Layout <ListView android:layout_width="wrap_content“  Absolute Layout android:layout_width="wrap_content" (Deprecated) android:layout_height="wrap_content" /> <ImageView android:id="@+id/geo_location“ android:src="@drawable/geo_location" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <LinearLayout android:id="@+id/location_selection_layout“ android:layout_width="wrap_content" android:layout_height="wrap_content" > <TextView android:id="@+id/recent_search_header_count”> android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout> </RelativeLayout>