Seminar Android 01 Intro

Embed Size (px)

Citation preview

  • 7/31/2019 Seminar Android 01 Intro

    1/24

    Overview of Android

    ProgrammingMarch 3, 2012

  • 7/31/2019 Seminar Android 01 Intro

    2/24

  • 7/31/2019 Seminar Android 01 Intro

    3/24

    Overview of Android

    ProgrammingInstallation

  • 7/31/2019 Seminar Android 01 Intro

    4/24

    Installing

    1. J2SE JDK

  • 7/31/2019 Seminar Android 01 Intro

    5/24

    Installing

    2. Android SDK

  • 7/31/2019 Seminar Android 01 Intro

    6/24

    Installing

    2. Android SDK

  • 7/31/2019 Seminar Android 01 Intro

    7/24

    Installing

    2. Android SDK

  • 7/31/2019 Seminar Android 01 Intro

    8/24

    Installing

    3. Eclipse Classic

  • 7/31/2019 Seminar Android 01 Intro

    9/24

    Installing

    4. ADT

  • 7/31/2019 Seminar Android 01 Intro

    10/24

    Installing

    4. ADT

  • 7/31/2019 Seminar Android 01 Intro

    11/24

    Installing

    4. ADT

  • 7/31/2019 Seminar Android 01 Intro

    12/24

  • 7/31/2019 Seminar Android 01 Intro

    13/24

    Installing

    5. Configuring Eclipse

  • 7/31/2019 Seminar Android 01 Intro

    14/24

  • 7/31/2019 Seminar Android 01 Intro

    15/24

    Overview of Android

    ProgrammingIntroductory Concepts

  • 7/31/2019 Seminar Android 01 Intro

    16/24

    Android Architecture

  • 7/31/2019 Seminar Android 01 Intro

    17/24

    Introductory Concepts Features:

    Application framework reuse and replacement of components

    Dalvik virtual machine optimized for mobile devices

    Integrated browser

    open source WebKit engine Optimized graphics

    custom 2D graphics library 3D graphics based on the OpenGL ES 1.0

    specification

  • 7/31/2019 Seminar Android 01 Intro

    18/24

    Introductory Concepts

    SQLite

    structured data storage

    Media support for common audio, video, and stillimage formats (MPEG4, H.264, MP3, AAC, AMR,JPG, PNG, GIF)

    hardware dependent features

    GSM Telephony

    Bluetooth, EDGE, 3G, and WiFi

    Camera, GPS, compass, and accelerometer

  • 7/31/2019 Seminar Android 01 Intro

    19/24

    Introductory Concepts

    Rich development environment

    device emulator

    tools for debugging

    memory and performance profiling

    plugin for the Eclipse IDE

  • 7/31/2019 Seminar Android 01 Intro

    20/24

    Introductory Concepts

    Application Fundamentals

    Java

    Android package (.apk)

    Sandboxed

    Manifest, resources, components (Activities,Services, Content providers, Broadcast receivers)

  • 7/31/2019 Seminar Android 01 Intro

    21/24

    Introductory Concepts

    Activities

    represents a single screen with a user interface

    when new activity starts, it is pushed onto theback stack

    UI can be built with XML or Java

    Lifecycle callback methods

    onCreate(), onStart(), onResume(), onPause(),onStop(), and onDestroy()

    applications can contain multiple activities

  • 7/31/2019 Seminar Android 01 Intro

    22/24

    Introductory Concepts

    Services

    perform long running operations in the

    background

    no UI

    runs independently of the component that createdit

    can be bound to by other application components

  • 7/31/2019 Seminar Android 01 Intro

    23/24

    Introductory Concepts

    Content Providers

    store and retrieve data and make it accessible to

    all applications

    only way to share data across applications

    data is exposed as a simple table

    exposes a public URI that uniquely identifies itsdataset

  • 7/31/2019 Seminar Android 01 Intro

    24/24

    Introductory Concepts

    Broadcast Receivers

    responds to system-wide broadcast

    announcements Ex: low battery charge

    applications can initiate their own broadcasts

    no UI but can create bar notifications