Android Application Development
Android Application Development
Development
By-
PRASHANT KUMAR LAL
ANDROID PHONES
Sony X10
* Open source
* Portability
* Easily accessed
* Huge marketplace
* Flexibility
* Lower entry barrier
* Job prospects
* Profitability
* Penetration of different devices
* Social apps
ANDROID APPLICATION
DEVELOPMENT
Android
Android Studio
SDK
Android
Android
Mobile
Emulator
Device
ANDROID DEVELOPMENT
Java Source
Android
Manifest
Generated Java .dex Dalvik
Class Compiler File VM
Resource
XML
Android
Libraries
GOING WITH THIS….
* Android Tutorial
* Android Widgets
* Activity and Intents
* Android Fragments
* Android Menu
* Android Service
* Android Device
* Android Basic Example with code
* Android App on play store
HISTORY OF ANDROID
1. The history and versions of android are interesting to know. The
code names of android ranges from A to P currently, Let's
understand the android history in a sequence.
It’s obvious that mobile device may take the place of PC in future
OS plays a vital part
Embedded
Processor Device Middleware Apps
OS
APPLICATION FRAMEWORK
LINUX KERNAL
• Works as a HAL
• Device drivers
• Memory management
• Process management
• Networking
LIBRARIES
• C/C++ libraries
• Interface through Java
• Surface manager – Handling UI Windows
• 2D and 3D graphics
• Media codecs, SQLite, Browser engine
ANDROID RUNTIME
• Dalvik VM
– Dex files
– Compact and efficient than class files
– Limited memory and battery power
• Core Libraries
– Java 5 Std edition
– Collections, I/O etc…
APPLICATION FRAMEWORK
• API interface
• Activity manager – manages
application life cycle.
APPLICATION
*Activity
*Service
*Broadcast Receivers
*ContentProvider
ACTIVITIES
Typically correspond to one UI screen, Basically
through which user interact.
But, they can:
*Be faceless
*Be in a floating window
*Return a value
SERVICES
A service is a component that runs in the background to
perform long-running operations without needing to interact
with the user and it works even if application is destroyed. A
service can essentially take two states −
Started- A service is started when an application component,
such as an activity, starts it by calling startService(). Once
started, a service can run in the background indefinitely,
even if the component that started it is destroyed.
Bound-A service is bound when an application component
binds to it by calling bindService(). A bound service offers a
client-server interface that allows components to interact
with the service, send requests, get results, and even do so
across processes with interprocess communication (IPC).
SERVICES LIFE CYCLE
INTENTS RECIVER