Android Develop
Speaker : Phanuphong Setthakunphiphat [PS.OHM] Website: http://psohm.org Twitter: @PS_OHM
What is Android? Android is a mobile phone operating system developed by Google. Android is unique because Google is actively developing the platform but giving it away for free to hardware manufacturers and phone carriers who want to use Android on their devices.
Features * Application framework enabling reuse and replacement of components * Dalvik virtual machine optimized for mobile devices * Integrated browser based on the open source WebKit engine * Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional) * SQLite for structured data storage * Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF) * GSM Telephony (hardware dependent) * Bluetooth, EDGE, 3G, and WiFi (hardware dependent) * Camera, GPS, compass, and accelerometer (hardware dependent) * Rich development environment including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE
Android Architecture
Android Architecture Applications Android will ship with a set of core applications including an email client, SMS program, calendar, maps, browser, contacts, and others. All applications are written using the Java programming language.
Application Framework Developers have full access to the same framework APIs used by the core applications. The application architecture is designed to simplify the reuse of components; any application can publish its capabilities and any other application may then make use of those capabilities (subject to security constraints enforced by the framework). This same mechanism allows components to be replaced by the user.
Android Architecture Libraries Android includes a set of C/C++ libraries used by various components of the Android system. These capabilities are exposed to developers through the Android application framework.
Android Runtime Android includes a set of core libraries that provides most of the functionality available in the core libraries of the Java programming language.
Linux Kernel Android relies on Linux version 2.6 for core system services such as security, memory management, process management, network stack, and driver model. The kernel also acts as an abstraction layer between the hardware and the rest of the software stack.
Android Develop System Requirements Supported Operating Systems * Windows XP (32-bit) or Vista (32- or 64-bit) * Mac OS X 10.4.8 or later (x86 only) * Linux (tested on Linux Ubuntu Dapper Drake)
Android Develop System Requirements Supported Development Environments * Eclipse IDE - Eclipse 3.3 (Europa), 3.4 (Ganymede) - JDK 5 or JDK 6 (JRE alone is not sufficient) - Android Development Tools plugin (optional) - Not compatible with Gnu Compiler for Java (gcj) Other development environments or IDEs - JDK 5 or JDK 6 (JRE alone is not sufficient) - Apache Ant 1.6.5 or later for Linux and Mac, 1.7 or later for Windows - Not compatible with Gnu Compiler for Java (gcj)
Download the Android SDK * Select Platform
* Mark “I agree to the terms of the Android SDK License Agreement.”
Installing The Android SDK Preparing for Installation * install Eclipse (Galileo) website : http://www.eclipse.org/downloads/
Installing The Android SDK 1. Start Eclipse, then select Help > Software Updates....
Installing The Android SDK 2. In the dialog that appears, click the Available Software Sites
3. Click Add...
Installing The Android SDK 4. Enter the Name : Android SDK Location: https://dl-ssl.google.com/android/eclipse/ And Click OK
Installing The Android SDK
Installing The Android SDK
Installing The Android SDK
Installing The Android SDK
Installing The Android SDK Now modify your Eclipse preferences to point to the Android SDK directory: 1. Select Window > Preferences... to open the Preferences panel (Mac: Eclipse > Preferences).
Installing The Android SDK 2. Select Android from the left panel.
3. For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory.
4. Click Apply, then OK.