23
COLLEGE OF ENGINEERING AND TECHNOLOGY ANDROID AN OPEN HANDSET ALLIANCE Submitted By: Shubhangi Arora 10ECTCS111 Submitted To: Mrs.Sunita Choudhary (H.O.D. ) 1

Android overview

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Android overview

1

COLLEGE OF ENGINEERING AND TECHNOLOGY

ANDROIDAN OPEN HANDSET ALLIANCE

Submitted By:

Shubhangi Arora

10ECTCS111

Submitted To:

Mrs.Sunita Choudhary

(H.O.D. )

Page 2: Android overview

2

INDEX

What is Android? Features of Android Android versions Technology used Setup Emulator AVD Activity Creating a project Project components Xml R class ListView Intent SharedPrefrences Gallery SQLite Database

Page 3: Android overview

3

WHAT IS ANDROID……..? Android is an open source operating system Mobile apps Linux based (2.6 kernel) Create by Google and Open Handset Alliance.

Page 4: Android overview

4

FEATURES OF ANDROID

Messaging Web browser Multi-touch Multitasking Video calling Multiple language support Connectivity Bluetooth Media support External storage Java support

Page 5: Android overview

5

ANDROID VERSIONS Android 1.5 Cupcake(API Level 3) Android 1.6 Donut(API Level 4) Android 2.0 Eclair(API Level 5) Android 2.0.1 Eclair(API Level 6) Android 2.1 Eclair(API Level 7) Android 2.2 Froyo(API Level 8) Android 2.3 Gingerbread(API Level 9) Android 2.3.3 Gingerbread(API Level 10) Android 3.0 Honeycomb(API Level 11) Android 3.1 Honeycomb (API Level 12) Android 3.2 Honeycomb (API Level 13) Android 4.0 Ice Cream Sandwich(API Level 14) Android 4.0.3 Ice Cream Sandwich (API Level 15) Android 4.1 Jelly Bean(API Level 16) Android 4.2 Jelly Bean (API Level 17) Android 4.3 Jelly Bean (API Level 18) Android 4.4 Kit Kat(API Level 19)

Page 6: Android overview

6

TECHNOLOGY & TOOLS USED

DataBase used: SQLite Programming Languages: XML && java IDE :Eclipse,ADT

Page 7: Android overview

7

SETUP

Download the Android SDK. Install the ADT plugin for Eclipse (if you’ll use

the Eclipse IDE). Download the latest SDK tools and platforms

using the SDK Manager.

Page 8: Android overview

8

EMULATOR

A virtual mobile device. Develop and test Android applications without

using a physical device.

Page 9: Android overview

9

AVD MANAGER

Page 10: Android overview

10

AVD

Creation of AVD Default AVD

Page 11: Android overview

11

Activity

An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email. Each activity is gives a window in which to draw its user interface.

An Application usually consists of multiple activities that are loosely bounded to each other.

Page 12: Android overview

12

Page 13: Android overview

13

CREATING A PROJECT

Page 14: Android overview

14

PROJECT COMPONENTS

src – your source code gen – auto-generated code (usually

just R.java) Included libraries Resources Drawables (like .png images) Layouts Values (like strings) Manifest file

Page 15: Android overview

15

XML

Used to define some of the resourcesLayouts (UI)Strings

Manifest file Shouldn’t usually have to edit it directly,

Eclipse can do that for you Preferred way of creating UIs

Separates the description of the layout from any actual code that controls it

Can easily take a UI from one platform to another

Page 16: Android overview

16

R CLASS

Auto-generated: you shouldn’t edit it Contains IDs of the project resources Enforces good software engineering Use findViewById and Resources object

to get access to the resourcesEx. Button b =

(Button)findViewById(R.id.button1)Ex.

getResources().getString(R.string.hello));

Page 17: Android overview

17

LISTVIEW

ListView is a view group that displays a list of scrollable items.

Page 18: Android overview

18

INTENT

Intent are asynchronous messages which allow application components to request functionality from other Android components. Intents allow you to interact with components from the own and other applications. For example an activity can start an external activity for taking a picture.

Ex. Intent in=new Intent(Act.this,Klm.class);startActivity();

currentclass

reference

newActivitywhere wehave to go

Page 19: Android overview

19

Page 20: Android overview

20

SHAREDPREFERENCES

For any particular set of preferences, there is a single instance of this class that all clients share. Modifications to the preferences must go through an SharedPreferences.Editor object to ensure the preference values remain in a consistent state and control when they are committed to storage.

Page 21: Android overview

21

ABOUT SQLITE

SQLite is an embedded SQL database engine. SQLite does not have a separate server process. SQLite reads and writes directly to ordinary disk

files.

Page 22: Android overview

22

SQLITE DATABASE

SQLiteDatabase has methods to create, delete, execute SQL commands, and perform other common database management tasks.

Database names must be unique within an application, not across all applications.

Page 23: Android overview

23