Hfhfhfh
Páginas: 39 (9679 palabras)
Publicado: 5 de noviembre de 2010
release.002
Android Programming
with Tutorials from the anddev.org-Community.
written by Nicolas Gramlich
Check for the latest version on
http://andbook.anddev.org
andbook - Android Programming
Content
Foreword / How to read this doc ................................................. 5Introduction................................................................................ 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 ........................................................... 13Differences 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
................................................................................................... 25 ....................................................................................... 25 ............................................................................................... 25....................................................................................... 25 ............................................................................................... 25
2
powered by anddev.org
andbook - Android Programming
................................................................................................ 27.................................................................................................... 27 ...................................................................................................... 27 ................................................................................................... 28
Resources and the magic R.java ................................................ 29
Resources..................................................................................... 29
List of resources........................................................................................... 29 Using resources in code ............................................................................... 30 Referencing Resources ................................................................................ 31
Alternate Resources &...
Leer documento completo
Regístrate para leer el documento completo.