android new

Upload: nitinmehra2205

Post on 06-Apr-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 Android New

    1/29

  • 8/3/2019 Android New

    2/29

    Mobile Application Development(MAD)

    Intro to Android platformPlatform ArchitectureApplication Building Blocks

    Development ToolsHello Android

  • 8/3/2019 Android New

    3/29

    Few reasons to go MAD

    Smart PhonesInternet access anywhereSocial networking

    Millions of mobile users

    Open Standards

  • 8/3/2019 Android New

    4/29

    Introduction to Android

    Open software platform for mobile

    development

    A complete stack OS, Middleware,Applications

    An Open Handset Alliance (OHA) project

    Powered by Linux operating systemFast application development in Java

    Open source under the Apache 2 license

  • 8/3/2019 Android New

    5/29

  • 8/3/2019 Android New

    6/29

    Linux Kernel

    Works as a HAL

    Device Drivers

    Memory Management Process Management

    Networking

  • 8/3/2019 Android New

    7/29

    Libraries

    C/C++ libraries

    Interface through Java

    Surface Manager Handling UI Windows

    2D and 3D graphics Media codes, SQLite, Browser engine

  • 8/3/2019 Android New

    8/29

    Android Runtime

    DalvikVirtual Machine

    Dex files

    Compact and efficient

    than class files Limited memory and

    battery power

    Core Libraries

    Java 5 Std edition

    Collections, I/O etc

  • 8/3/2019 Android New

    9/29

    Application Framework

    API interface

    Activity Manager manages

    application life cycle.

  • 8/3/2019 Android New

    10/29

    Applications

    Built in and user apps

    Can replace built in apps

  • 8/3/2019 Android New

    11/29

    Application Building Blocks

    Activity

    Intent ReceiverServiceContent Providers

  • 8/3/2019 Android New

    12/29

    Activities

    Typically correspond to one UIscreen

    But, they can:Be facelessBe in a floating window

    Return a value

  • 8/3/2019 Android New

    13/29

    Intent Receivers

    Components that respond to

    broadcast IntentsWay to respond to externalnotification or alarms

    Apps can invent and broadcast theirown Intent

  • 8/3/2019 Android New

    14/29

    Intents

    Think of Intents as a verb and object; a

    description of what you want done

    E.g. VIEW, CALL, PLAY etc..

    System matches Intent with Activity that can

    best provide the service

    Activities and Intent Receivers describe what

    Intents they can service

  • 8/3/2019 Android New

    15/29

    Services

    Faceless components that run inthe background

    E.g. music player, networkdownload etc

  • 8/3/2019 Android New

    16/29

    Content Providers

    Enables sharing of data acrossapplications

    E.g. address book, photo galleryProvides uniform APIs for:

    querying

    delete, update and insert.Content is represented by URI and

    MIME type

  • 8/3/2019 Android New

    17/29

    Development Tools

    Eclipse

    Android SDK 1.0-2.0developer.android.com

  • 8/3/2019 Android New

    18/29

    Network Connectivity

    It supports wireless communications using:

    GSM mobile-phone technology

    3G

    Edge

    802.11 Wi-Fi networks

  • 8/3/2019 Android New

    19/29

    Devices

  • 8/3/2019 Android New

    20/29

    Application Lifecycle

    Application run in their ownprocesses (VM, PID)

    Processes are started and stoppedas needed to run an application'scomponents

    Processes may be killed to reclaimresources

  • 8/3/2019 Android New

    21/29

    Views

  • 8/3/2019 Android New

    22/29

    Views

  • 8/3/2019 Android New

    23/29

    Notification Manager

  • 8/3/2019 Android New

    24/29

    What is the Open Handset Alliance

    (OHA)???

    Devoted to advancing open standards formobile devices

    Develop technologies that will significantlylower the cost of developing and distributingmobile devices and services

  • 8/3/2019 Android New

    25/29

  • 8/3/2019 Android New

    26/29

    Limitations

    Bluetooth limitationso Android doesn't support:

    Bluetooth stereoContacts exchangeModem pairing

    Wireless keyboards

    Firefox Mobile isn't coming to Androido Apps in Android Market need to be

    programmed with a custom form of Java Mozilla and the Fennec won't have that

  • 8/3/2019 Android New

    27/29

  • 8/3/2019 Android New

    28/29

  • 8/3/2019 Android New

    29/29