session 1 beccse

12
Getting Started with ANDROID Dept. of Computer Science and Engineering

Upload: vin123456gangal

Post on 19-May-2015

172 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Session 1 beccse

Dept. of Computer Science and Engineering

Getting Started withANDROID

Page 2: Session 1 beccse

Dept. of Computer Science and Engineering

SESSION 1

1. Introduction to Mobile Application Development

2. Features of Android

3. Architecture of Android

4. Activity Life Cycle

Page 3: Session 1 beccse

Dept. of Computer Science and Engineering

Introduction to Mobile Application Development

Page 4: Session 1 beccse

Dept. of Computer Science and Engineering

What is ANDROID?

1. Open platform http://source.android.com.2. Can compile custom firmwares – good for hackers and other.3. New framework, extended on each new firmware.4. Support Multi tasking.5. Nice IDE – Eclipse, NetBeans.6. Development SDK is free.7. Easy to debug, can send logs to developers.8. Programming Language is JAVA but bridges from other languages exists

(C#, .net, etc)9. JAVA is a high level language that appeared in 1995. Android supports JAVA

1.5 and translates the byte code to its own custom Dalvik byte code optimised for mobile devices.

10. For the hardcore programmers, Android offers the possibility of programming using C the native dev kit known as NDK.

Page 5: Session 1 beccse

Dept. of Computer Science and Engineering

iPHONE

1. Closed platform.2. Limited Multitasking.3. Development Toolkit cost ~99$4. Programming language is Objective C – but bridges exists from JAVA, C#, etc.5. Objective C appeared in 1986.6. Next version of iPHONE is supposed to only allow Objective C code. This

means the bridges are out and you must program in Objective C if you want to create an iPHONE application.

7. Application are not allowed to duplicate the iPHONE functionality i.e., no custom email interface, etc.

Page 6: Session 1 beccse

Dept. of Computer Science and Engineering

ANDROID an OS ?? Or Application Stack ??

Page 7: Session 1 beccse

Dept. of Computer Science and Engineering

Introduction

Android is a software stack for mobile devices that includes :Operating System

Linux version 2.6 Service include hardware drivers, power, process and memory management; security and network.

Middleware

Libraries SQLite, OpenGL, Webkit, etc

Android Runtime Dalvik Virtual Machine and core libraries.

Application FrameworksAbstraction for hardware access; manages application resources and the UI; provides classes for developing applications for Android

Applications

Native apps Contact, Phone, Browser, etc.

Third Party apps Developer’s application.

Page 8: Session 1 beccse

Dept. of Computer Science and Engineering

Typical Android Architecture

Page 9: Session 1 beccse

Activity Life Cycle

Dept. of Computer Science and Engineering

Page 10: Session 1 beccse

Dept. of Computer Science and Engineering

Introduction

Activity Life CycleActivity are managed as an activity stack (LIFO collection)

Activity has four stages

Running Activity is in the foreground

Paused Activity has lost focus but it is still visible

Stopped Activity is not visible (completely obscured by another activity)

Inactive Activity has not been launched yet or has been killed.

Page 11: Session 1 beccse

Dept. of Computer Science and Engineering

Page 12: Session 1 beccse

Tea Break

Dept. of Computer Science Science and Engineering