+ All Categories
Home > Documents > Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

Date post: 04-Apr-2018
Category:
Upload: duong-le-trung
View: 237 times
Download: 0 times
Share this document with a friend

of 17

Transcript
  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    1/17

    Singapore Android Developer Challenge

    Introduction to Android Programming

    By: Tee Meng Kem and Sun Jian

    Email : [email protected] [email protected]

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    2/17

    AGENDA

    Day 19.00am 9.30am : Introduction and Overview of Android

    9.30am 12.30pm : Android Application, User Interface/Activity,

    Resources and Assets, Permissions

    12.30 m 1.30 m : Lunch

    1.30pm 2.30pm : Intents, Thread

    2.30pm 3.00pm : Storage (files and databases)

    . . -

    Android Developer Competition

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    3/17

    AGENDA

    Day 29.00am 10.30am : Input Handling & Sensors

    10.30am 12.00pm : Network / WiFi /BT

    12.00pm 1.00pm : Gaming

    1.00 m 2.00 m : Lunch

    2.00pm 5.00pm : Hands-on

    Android Developer Competition

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    4/17

    Introduction and Overview

    Day 19.00am 9.30am : Introduction and Overview of Android

    9.30am 12.30pm : Android Application, User Interface/Activity,

    Resources and Assets, Permissions

    12.30 m 1.30 m : Lunch

    1.30pm 2.30pm : Intents, Thread

    2.30pm 3.00pm : Storage (files and databases)

    . . -

    Android Developer Competition

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    5/17

    Useful Links for Android

    Useful links that you can find online:

    Android Developer Guide

    http://developer.android.com/guide/index.html

    API References

    http://developer.android.com/reference/packages.html

    Motorola Developer Network

    htt ://develo er.motorola.com

    Google Developer Conference IO Session

    Android Developer Competition

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    6/17

    Useful Links for Android

    Useful links that you can find online:

    Eclipse IDEhttp://www.eclipse.org/downloads/

    Android SDK

    http://developer.android.com/sdk/index.html

    ADT Plugin for Eclipsehttp://developer.android.com/sdk/eclipse-adt.html

    Android Platformhttp://developer.android.com/sdk/adding-components.html

    Android Developer Competition

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    7/17

    Android An Evolution

    AndroidTM

    is a new runtime environment fromGoogle Inc.

    Android is based on TM JavaTM language based middleware

    Android Developer Competition

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    8/17

    Ex: Device drivers, networking (WiFi, Bluetooth), filesystem and memory management, process model

    Open Source Libraries:

    Ex: WebKit, SQLite, OpenGL, FreeType, etc.

    Java Language and Middleware (Dalvik VirtualMachine)

    All Android applications (system and user) are writtenin Java.

    Android Developer Competition

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    9/17

    Android Developer Competition

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    10/17

    All applications are equal

    All applications (pre-loaded and 3rd

    party) are written in Javaand use the same APIs

    VM and unique user ID

    All applications can run concurrently or in the background

    Applications have access to device APIs

    Sensors like accelerometer, compass, GPS, etc.

    Declarative Android UI based on XML layout files

    Android Developer Competition

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    11/17

    Android Application

    Android applications are packaged as ZIP files with theextension .apk (Android Package)

    AndroidManifest.XML (Similar to Jar Manifest, but more

    details)c asses. ex ass es conver e o a v orma

    resources (localized strings and graphic files)

    Other meta information files

    APK files are generated by using the Android Asset Packing

    Android Developer Competition

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    12/17

    Android

    Activity:

    An Activity is the most basic building block of an applicationTypically an application has one or more Activities

    When user switches the view to a different activity, the current

    activity is put to paused state

    Android Developer Competition

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    13/17

    Android

    pp ca on oncep s Service:

    Services are background tasks which execute without a UI,such as media players, download managers, etc.

    -interface defined in an IDL

    o e: n ro , par y app ca ons can an are encourageto) re-use and/or replace system components!

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    14/17

    Android

    Content Providers:

    Components which share data, typically abstract access toapplication database (e.g. Contacts).

    Broadcast Receivers:

    Code which is executed for system wide broadcastmessages, like picture taken, low battery, etc.

    Think of them as a way to respond to external notifications

    Applications can invent and broadcast their own Intents aswell

    Android Developer Competition

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    15/17

    Intents:

    Asynchronous communication mechanism betweencomponents

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    16/17

    Co ri h Copyright 2009-2010, Motorola, Inc. All rights reserved except as otherwise explicitly indicated.

    The information offered in this article is offered on an AS IS basis, WITHOUT WARRANTIES ORCONDITIONS OF ANY KIND either expressed or implied. In addition, Motorola disclaims allliability from the use or inability to use the information provided. The entire risk as to the quality

    .sample code in the form of example applications and code fragments.

    Motorola grants you a limited personal, non-exclusive, and revocable license to: (i) use the samplesource code internall to develo test evaluate and demonstrate software a lications for usesolely with or on Motorola wireless handset products, and (ii) incorporate the sample source codeinto the applications and distribute the applications in binary form only, provided that you includeany copyright notice that appears in the sample source code.

    Android Developer Competition

  • 7/31/2019 Introduction to Android Programming-Part1 %5BCompatibility Mode%5D

    17/17

    License

    cense un er e pac e cense, ers on . e cense ; you may no use s e excep

    in compliance with the license. You may obtain a copy of the license athttp://www.apache.org/licenses/LICENSE-2.0 .

    ,distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,either expressed or implied. See the License for the specific language governing permissions and

    limitations under the License.

    Android Developer Competition


Recommended