Android Zensar
Android Zensar
MOBILE O.S
Some of the popular operating systems used in mobile gadgets are given below. 1. Symbian Nokia Windows Phone 2. iOS Apple
3. Blackberry O.S
4. Android manufacturers
Blackberry
Many Handset
WHAT IS ANDROID?
Android is a software stack for mobile devices that includes an operating system, middleware and key applications
ANDROID APPLICATIONS
Multiple applications, running simultaneously User may switch between running applications Background services Supports three Orientations
Has access to wi-fi, phone state, audio settings, external memory access.
ANDROID MARKET
ANDROID MARKET
Market got you down? upload APK to your own web server
http://icecondor.com/download/icecondor-2008-1026.apk
use correct MIME type application/vnd.android.package-archive
IPHONE VS ANDROID !?
6) COST
STATISTICS
Extras
<------Android enabled Car Stereo
SYSTEM ARCHITECTURE
LINUX KERNEL
Android relies on Linux version 2.6 for core system services, acts as a layer between hardware and software.
Manages the following; Security Memory management Process management Network stack Driver model
DALVIK VM
APPLICATION FRAMEWORK
Activity Manager : Maintains the activities/screens of the applications that are displayed Window Manager: Co-ordinates the orientation of phone, sensors etc. Content : Manages the data to be transferred between Activities / screens : Controls the various layouts, button and UI level objects : Deals with the display of AlertBox, Toast msgs.
Manager
View System Notification Manager Telephony Manager Location Manager
NETWORK CONNECTIVITY
It supports wireless communications using GSM mobile-phone technology
3G
802.11 Wi-Fi networks Integrated Browser
APPLICATION APIS
UI
APPLICATION APIS
Web android.webkit.WebView Camera android.hardware.CameraDevice Local database android.database.* Maps com.google.android.maps.MapView Location android.location.LocationManager Multimedia android.media.MediaPlayer
API LEVELS
API Level is an integer value that uniquely identifies the framework API revision offered by a version of the Android platform:
Android 2.3 (Gingerbread) 9/10 8 7
4
3
DEVELOPMENT TOOLS
Android SDK Eclipse plugin Android emulator Command line tools Documentation Debugging tools Android NDK Android PDK
Consists of the emulator, documentation, debugging tools and command line Also requires ADT plugin for merging with eclipse. Steps you must follow to set up the Android SDK: Prepare your development computer and ensure it meets the system requirements. Install the SDK starter package from the table above. (If you're on Windows, download the installer for help with the initial setup.) Install the ADT plugin for Eclipse (if you'll be developing in Eclipse). Add Android platforms and other components to your SDK. Installers available at :
http://developer.android.com/sdk/index.html,
http://developer.android.com/sdk/eclipseadt.html#installing
ANDROID SDK
ADB COMMANDS
adb push <packagename.apk> /system/app/ ----------put in system folder adb devices ----lists which devices are currently attached to your computer adb install <packagename.apk> lets you install an Android application on your phone adb remount Remounts your system in write mode this lets you alter system files on your phone using ADB adb push <localfile> <location on your phone> lets you upload files to your phones filesystem adb pull <location on your phone> <localfile> lets you download files off your phones filesystem adb logcat starts dumping log from the console to a local file useful for debugging apps adb shell <command> drops you into a basic linux command shell on your phone with no parameters, or lets you run commands directly adb devices lists which devices are currently attached to your computer
ANDROID EMULATOR
EMULATOR LIMITATIONS
No support for placing or receiving actual phone calls No support for camera/video capture (input) No support for determining battery charge level Emulator limitations No support for Bluetooth
EXAMPLE APPLICATIONS
An APK file is an archive that usually contains the following folders: META-INF res and files: AndroidManifest.xml classes.dex resources.arsc
IMPLEMENTING APPLICATION UI
AlertDialog.Builder alt_bld = new AlertDialog.Builder(this); ImageButton imgBtn = new ImageButton(this); LinearLayout holder = new LinearLayout(this); holder.addView(imgBtn);
alt_bld.setView(holder); alt_bld.show()
XML
UI creation before the creation of apk
Thank You
The End