Download - Android
What is Android?
Application Framework
Dalvik virtual machine
Browser based on WebKit
Optimized graphics (OpenGL ES 1.0)
SQLite
Features
Android Architecture
SDK
IDE
◦ Debugger
◦ Profiler
◦ Resource Building
◦ Deployment
Tools
Views
Content Providers
Resource Manager
Notification Manager
Activity Manager
Application Framework
Layouts
◦ XML Files
◦ Can be nested
Strings
Colors
Arrays
GUI
IDs
◦ Using the @+id/name syntax
Resource Building - R.java
XML
GUI
Views
◦ TextView, Button, EditText, RadioButton, etc.
Layouts
◦ LinearLayout
◦ RelativeLayout
◦ TableLayout
Layouts
Most Common
◦ <android:layout_height>
◦ <android:layout_height>
Wrap_content, fill_parent …
Layout Parameters
A single thing the user can do
It can be reused
Can be invoked by other applications
It Can be
◦ Full Screen Window
◦ Floating Windows
◦ Embedded
Activities
Activity Lifecycle
package com.HelloWorld;
import android.app.Activity;import android.os.Bundle;
public class About extends Activity {@Overrideprotected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);setContentView(R.layout.about);}
}
A typical Activity
Each applications has it own process
Sandbox
User IDs and File Access
Permissions
Security and Permissions
Intent – What you want done
IntentFilters – What an activity do or
IntentReceiver do
Registered in Android Manifest
Intent & IntentFilters
Enables sata sharing between the
applications
Querying , Modifying, Adding, Deleting
Hide underlying inplementation
Represented by URIs
◦ content://media/internal/images
◦ content://contacts/people
Content Providers
Runs in background
◦ MP3 player, weather service, download
Run in application’s process or another process
Services
Universal Search
Automated Backups
Polished Applications
Better Performance
Whats Next?
http://developer.android.com
http://www.anddev.org/
XDA Developers forum for android development
Where to start?