android

18
What is Android?

Upload: keshan88

Post on 17-May-2015

1.979 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Android

What is Android?

Page 2: Android

Application Framework

Dalvik virtual machine

Browser based on WebKit

Optimized graphics (OpenGL ES 1.0)

SQLite

Features

Page 3: Android

Android Architecture

Page 4: Android

SDK

IDE

◦ Debugger

◦ Profiler

◦ Resource Building

◦ Deployment

Tools

Page 5: Android

Views

Content Providers

Resource Manager

Notification Manager

Activity Manager

Application Framework

Page 6: Android

Layouts

◦ XML Files

◦ Can be nested

Strings

Colors

Arrays

GUI

Page 7: Android

IDs

◦ Using the @+id/name syntax

Resource Building - R.java

XML

GUI

Page 8: Android

Views

◦ TextView, Button, EditText, RadioButton, etc.

Layouts

◦ LinearLayout

◦ RelativeLayout

◦ TableLayout

Layouts

Page 9: Android

Most Common

◦ <android:layout_height>

◦ <android:layout_height>

Wrap_content, fill_parent …

Layout Parameters

Page 10: Android

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

Page 11: Android

Activity Lifecycle

Page 12: Android

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

Page 13: Android

Each applications has it own process

Sandbox

User IDs and File Access

Permissions

Security and Permissions

Page 14: Android

Intent – What you want done

IntentFilters – What an activity do or

IntentReceiver do

Registered in Android Manifest

Intent & IntentFilters

Page 15: Android

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

Page 16: Android

Runs in background

◦ MP3 player, weather service, download

Run in application’s process or another process

Services

Page 17: Android

Universal Search

Automated Backups

Polished Applications

Better Performance

Whats Next?

Page 18: Android

http://developer.android.com

http://www.anddev.org/

XDA Developers forum for android development

Where to start?