andriod_intro

12
Android M o b i l e O S P U R V I K 1239

Upload: purvik-rana

Post on 31-Jul-2015

13 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Andriod_Intro

Android M o b i l e O S P U R V I K 1239

Page 2: Andriod_Intro

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

Unveiling of the Android platform was announced on 5November 2007

P U R V I K 1239

Page 3: Andriod_Intro

Android

“ It is a software stack for mobile devices that includes anoperating system, middleware and key applications “

Released under the open-source Apache License

Offers a unified approach to application development

Need to develop only for Android

Application can run on numerous devices

P U R V I K 1239

Page 4: Andriod_Intro

Features of Android

Storage - SQLite, a lightweight relational database for datastorage

Connectivity – GSM/EDGE, CDMA, UMTS, WiFi, WiMAX

Media Support

Hardware Support – Accelerometer Sensor, Digital Compass,Proximity Sensor and GPS

Multi-touch and Multi-tasking

Flash Support – Android 2.3 (Flash 10.1)

Tethering – sharing of Internet connection as a wired/wirelesshotspot

P U R V I K 1239

Page 5: Andriod_Intro

Architecture of AndroidP U R V I K 1239

Page 6: Andriod_Intro

Android OS is roughly divided into five sections in fourmain layers:

• Contain all the Low level drivers for various hardware components of Android

Linux Kernel

• Code for main features

• SQLite library- data storage

• WebKit library – functions for web browsing

Libraries

• Set of Core libraries – enable developers to write Android Apps using Java Programming

Android Runtime

P U R V I K 1239

Page 7: Andriod_Intro

• Expose various capabilities of Android – developers use them in their Apps

Application Framework

• Apps that ship with the Android device (like Phone, Contacts, Browser etc..)

• Apps that download and install from Android Market

Applications

P U R V I K 1239

Page 8: Andriod_Intro

Android Development

• IDE for Android Apps

Eclipse

• Debugger, libraries, emulator, docs,

sample code and tutorials

Android SDK• Pug-in for Eclipse IDE

for Creation-Debugging

ADT (Android Development Toolkit)

P U R V I K 1239

Page 9: Andriod_Intro

• .java source files of your Projectsrc

• Android.jar , contain all class libraries

Android 2.3

• R.Java – compiler generated file for all resources in your project

Gen

• All HTML, txt files, database assets used by your apps

assects

• Resources used in your Application Res

• Specify permission for your Application

• Other features like intent-filters, receivers etc.

AndroidManifest.xml

Application StructureP U R V I K 1239

Page 10: Andriod_Intro

How to Start…. Eclipse

File New Project Android – Android Project

P U R V I K 1239

Page 11: Andriod_Intro

P U R V I K 1239

Page 12: Andriod_Intro

Various Layouts

• Arrange the views in Single Row or Single Column

Linear Layout

• Enables to set the exact location of its children

Absolute Layout

• Group views into rows and column• <TableRow> - designet a Row in the Table

Table Layout

• Enables you to set child position relative to each other

Relative Layout

P U R V I K 1239