| Free tutorials for Java, Eclipse and Web programming |
Version 1.7
Copyright © 2009 -2010 Lars Vogel
13.01.2009
| Revision History | ||
|---|---|---|
| Revision 0.1 | 04.07.2009 | Lars Vogel |
| Created | ||
| Revision 0.2 | 08.07.2009 | Lars Vogel |
| First working example | ||
| Revision 0.3 | 30.08.2009 | Lars Vogel |
| Improved description | ||
| Revision 0.4 | 30.10.2009 | Lars Vogel |
| Updated to use Android 2.0 | ||
| Revision 0.5 | 01.11.2009 | Lars Vogel |
| Started XML support | ||
| Revision 0.6 | 02.11.2009 | Lars Vogel |
| Added the android log view | ||
| Revision 0.7 | 03.11.2009 | Lars Vogel |
| Access to the shell access, uninstall android application | ||
| Revision 0.8 | 04.11.2009 | Lars Vogel |
| Networking | ||
| Revision 0.9 | 05.11.2009 | Lars Vogel |
| Added the usage of SharedPreferences | ||
| Revision 1.0 | 06.11.2009 | Lars Vogel |
| Usage of ContentProvider | ||
| Revision 1.1 | 10.11.2009 | Lars Vogel |
| Assign handler to button via XML (thanks to Jason Arora for the tip) | ||
| Revision 1.2 | 21.11.2009 | Lars Vogel |
| Emulator console added | ||
| Revision 1.3 | 22.11.2009 | Lars Vogel |
| Authorization mentioned | ||
| Revision 1.4 | 25.11.2009 | Lars Vogel |
| Google API, location API, MapView | ||
| Revision 1.5 | 13.12.2009 | Lars Vogel |
| Fixed text for button assignment | ||
| Revision 1.6 | 30.12.2009 | Lars Vogel |
| Fixed typo | ||
| Revision 1.7 | 13.01.2009 | Lars Vogel |
| Updated screenshot | ||
Table of Contents
Android is an operating system based on Linux with a Java programming interface. It provides tools, e.g. a compiler, debugger and a device emulator as well as its own Java Virtual machine (Dalvik).
Android is created by the Open Handset Alliance which is lead by Google.
Android uses a special Java virtual machine (Dalvik) which is based on the Apache Harmony Java implementation. Dalvik uses a special Bytecode so that you have to use the Android compiler to create this special byte-code.
Android supports 2-D and 3-D graphics using the OpenGL libraries and supports data storage in a SQLLite database.
For development Google provides the Android Development Tools (ADT) for Eclipse to develop Android applications.
An Android application consists out of the following parts:
Activity - A screen in the Android application
Intent / Broadcast Receiver - allow the application to request and / or provide services from other application. For example the application call ask via an intent for a contact application. Application register themself via an IntentFilter
Services - Background activities without UI
Content Provider - provides data to applications, Android contains a SQLLite DB which can serve as data provider
An Android application is described the file "AndroidManifest.xml". This files contains all classes of the application and the required permissions for the application, e.g. if the application requires network access. "AndroidManifest.xml" can be thought as the deployment descriptor for an Android application.