Content

Foreword/ How to read this doc 5

Introduction 6

What is Android - a GPhone? 7

Android from above 8

Openness 8

All applications are created equal 9

Breaking down application boundaries 9

Fast & easy application development 9

The first weeks 12

Dalvik.equals(Java) == false 13

Differences to a normal JavaVM 13

The Android Code Challenge 14

Creating Android Applications 15

Anatomy of an Android Application 15

Activity 15

Intent Receiver 17

Service 17

Content Provider 18

Android User Interfaces 19

Hierarchy of Screen Elements 19

Comparing Android UI Elements to Swing UI Elements 22

The AndroidManifest.xml 23

General 24

<manifest> 25

<uses-permission> 25

<permission> 25

<instrumentation> 25

<application> 25

<meta-data> 27

<receiver> 27

<service> 27

<provider> 28

Resources and the magic R.java 29

Resources 29

List of resources 29

Using resources in code 30

Referencing Resources 31

Alternate Resources & Localization 32

The magic R.java 33

Hello World - The Android way 34

Installing the Android SDK 35

The Android Development Tools (ADT) 35

Installation done, let's do some code 37

Creating a new Android Project 37

Running your first application 43

UIs the Java way 45

The LogCat 46

Using Intents 49

Starting (Sub)Activities 49

Finding XML-defined Views in Java-Code 52

Handling Clicks to Views 53

Returning values from SubActivities 56

Passing Data to (Sub)Activities 58

Important Layouts and ViewGroups 60

The RelativeLayout 60

Bibliography 61

Lost chapters 62

The communities 62

0 0

Post a comment