Level 1 (beginner level) Dina Wasef
Level 1 (beginner level) Dina Wasef
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.
.
Overview
WHY ANDROID ??!! Free & open platform (stack).
Give developper tool and libraries to make rich
appliccation.
Open for customization
Android market
History of Android
ANDROID SOFTWARE STACK
Android and Java
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)
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
Sdk folder >>> tools>>> android
HELP >>> Install New Software >>> Add Http://dl-ssl.google.com/android/eclipse
Windows>>preferences>>android
HELLO WORLD New >> Android project
Mainfest.xml
res/layout/main.xml
Strings.xml
R.java
Hello world.java
MAIN BUILDING BLOCKS
Activity.
Intents.
Services.
Content providers.
Activity
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 .
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
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
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
UI
Declarative
Programmatic
components
layout
Views
LAYOUTS
Linear layout
Frame layout
Absolute layout
Relative layout
Table layout
Linear layout
Relative layout