Top Banner
Level 1 (beginner level) Dina Wasef
38

android level 1

Aug 20, 2015

Download

Education

DevMix
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: android level 1

Level 1 (beginner level) Dina Wasef

Page 2: android level 1

Overview

What is Android ??!! Android is an operating system designed for mobile

device based on linux kernel .

Led by google and owned by Open Handset Alliance.

.

Page 3: android level 1

Overview

WHY ANDROID ??!! Free & open platform (stack).

Give developper tool and libraries to make rich

appliccation.

Open for customization

Android market

Page 4: android level 1

History of Android

Page 5: android level 1
Page 6: android level 1
Page 7: android level 1
Page 8: android level 1
Page 9: android level 1
Page 10: android level 1

ANDROID SOFTWARE STACK

Page 11: android level 1
Page 12: android level 1

Android and Java

Page 13: android level 1

APK File

Dalvik executable This is the code that runs

your application.

Resources are everything that is not code.

(XML,images ,video,layouts ,...etc)

Native libraries (optionally)

Page 14: android level 1

INSTALLATION

Installing Eclipse http://www.eclipse.org/downloads/

Installing the Android SDK

Android Software Development Kit (SDK) is all you need to

develop android application

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

Page 15: android level 1
Page 16: android level 1

Sdk folder >>> tools>>> android

Page 17: android level 1

HELP >>> Install New Software >>> Add Http://dl-ssl.google.com/android/eclipse

Page 18: android level 1
Page 19: android level 1

Windows>>preferences>>android

Page 20: android level 1

HELLO WORLD New >> Android project

Page 21: android level 1
Page 22: android level 1

Mainfest.xml

Page 23: android level 1

res/layout/main.xml

Page 24: android level 1

Strings.xml

Page 25: android level 1

R.java

Page 26: android level 1

Hello world.java

Page 27: android level 1

MAIN BUILDING BLOCKS

Activity.

Intents.

Services.

Content providers.

Page 28: android level 1

Activity

Page 29: android level 1

Activity

Consider usually as asingle screen that user

see on device like text apps .

ex. website .

Each activity has its own cycle .

It is implemented as aclass .

When new screen opens prev.one

paused and put in history stack .

Page 30: android level 1
Page 31: android level 1

INTETS They are system msg running inside device

notifies apps for events, from hardware state to

incoming data

For android to move from screen to screen

called intent

You create your own intent object to launch aother

apps

Page 32: android level 1

service

It is the code that long lived and run

without UI

ex.media player apps & network

download

Media player Activity could start service

using Context.startservice() to run in

background to keep music going

Page 33: android level 1

ContetProvider

sharable data storage Enable data

sharing between apps

Simple interface with insert , update

Android development encourage

other apps to have data while

mainting complete control over data

how to get accessed

It is aclass the implement standard

set of methods

Page 34: android level 1

UI

Declarative

Programmatic

components

layout

Views

Page 35: android level 1

LAYOUTS

Linear layout

Frame layout

Absolute layout

Relative layout

Table layout

Page 36: android level 1

Linear layout

Page 37: android level 1

Relative layout

Page 38: android level 1