Google Androidm
Google Androidm
Google Androidm
Android
Application Development
By
K.Harshitha
21K61A04479
Java
• Basic Java programming
–Exceptions
–Inner Class, Interface
• Advanced topics we will touch:
–Java IO
–Java Thread
–Java Socket
Android Basics
• Smart Phones
–Internet access anywhere
–Social networking
• Millions of mobile users
• Open standards
Introduction to Android
• Open software platform for mobile
development
• A complete stack – OS, Middleware,
Applications
• An Open Handset Alliance (OHA) project
• Powered by Linux operating system
• Fast application development in Java
• Open source under the Apache 2 license
Linux Kernel
• 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.
Applications
“Pick
GMail photo”
• Eclipse
• Limitations:
–No Camera support
Devices
Hello World
• A great starting point:
http://developer.android.com/guide/tuto
rials/hello-world.html
• Generating UIs
–Views – building blocks
–E.g. TextView, EditText, Button
–Placed into Layouts
–E.g. LinearLayout, TableLayout,
AbsoluteLayout
Application Lifecycle
• Application run in their own processes
(VM, PID)
• Processes are started and stopped as
needed to run an application's
components
• Processes may be killed to reclaim
resources
Lifecycle
• System • Home • Mail • Browser
Process
Home
• Map
Contacts
GMail
Location Manager
XMPP Services
• Allows any app to send
device-to-device messages to other
android users
• Data Messages are Intents with
name/value pairs
• Works with any gmail account…
• Can also build servers to deliver
server-to-device messages
Notification Manager
Notification Manager
• How background app interact with users