12-09-2012, 04:42 PM
Android Application Development
Android Application.pdf (Size: 1.53 MB / Downloads: 209)
Goal
• Get you an idea of how to start developing
Android applications
• Introduce major Android application concepts
• Walk you through a sample application in the
development environment
What is Android?
• A free, open source mobile platform
• A Linux-based, multiprocess, multithreaded OS
• Android is not a device or a product
• It’s not even limited to phones - you could build
a DVR, a handheld GPS, an MP3 player, etc.
Layout Parameters
• Specify many aspects of what’s being rendered
• Examples:
• android:layout_height
• android:layout_width
• Tip: start with documentation for a specific View
or Layout and then look at what’s inherited from
parent class
Intents
• Think of Intents as a verb and object; a
description of what you want done
• Examples: VIEW, CALL, PLAY, etc.
• System matches Intent with Activity that can best
provide that service
• Activities and BroadcastReceivers describe what
Intents they can service in their IntentFilters (via
AndroidManifest.xml)
BroadcastReceivers
• Components designed to respond to broadcast
Intents
• Think of them as a way to respond to external
notifications or alarms
• Applications can invent and broadcast their own
Intents as well
Services
• Faceless components that run in the background
• Example: music player, network downlaod, etc.
• Bind your code to a running service via a
remote-able interface defined in an IDL
• Can run in your own process or separate
process
Android Application.pdf (Size: 1.53 MB / Downloads: 209)
Goal
• Get you an idea of how to start developing
Android applications
• Introduce major Android application concepts
• Walk you through a sample application in the
development environment
What is Android?
• A free, open source mobile platform
• A Linux-based, multiprocess, multithreaded OS
• Android is not a device or a product
• It’s not even limited to phones - you could build
a DVR, a handheld GPS, an MP3 player, etc.
Layout Parameters
• Specify many aspects of what’s being rendered
• Examples:
• android:layout_height
• android:layout_width
• Tip: start with documentation for a specific View
or Layout and then look at what’s inherited from
parent class
Intents
• Think of Intents as a verb and object; a
description of what you want done
• Examples: VIEW, CALL, PLAY, etc.
• System matches Intent with Activity that can best
provide that service
• Activities and BroadcastReceivers describe what
Intents they can service in their IntentFilters (via
AndroidManifest.xml)
BroadcastReceivers
• Components designed to respond to broadcast
Intents
• Think of them as a way to respond to external
notifications or alarms
• Applications can invent and broadcast their own
Intents as well
Services
• Faceless components that run in the background
• Example: music player, network downlaod, etc.
• Bind your code to a running service via a
remote-able interface defined in an IDL
• Can run in your own process or separate
process