Apps are made from components Android instantiates and runs them as needed Each component has its own purpose and APIs
Primary class for user interaction Usually implements a single, focused task that the user can do
Runs in the background to perform long-running operations to support interaction with remote processes
The subscriber in publish/subscribe pattern Events represented by the Intent class and then Broadcast
The subscriber in publish/subscribe pattern Events represented by the Intent class and then Broadcast BroadcastReceiver receives and responds to broadcast event
User enters an address App displays a map of area around the address
Define resources Implement application classes Package application Install & run application
Resources are non-source code entities Many different resource types, such as Allows apps to be customized for different devices and users
See: http://developer.android.com/guide/! " " " "topics/resources"
Types: String, String Array, Plurals Typically stored in res/values/*.xml Specified in XML, e.g.,
<string name="hello">Hello World!</string>" Can include formatting and styling
"
Otherwise,
Enter Location
Can specify different Layout files based on your devices orientation, screen size, etc.
At compilation time, resources are used to generate the R.java class Java code uses the R class to access resources
Usually involves at least one Activity Activity initialization code usually in onCreate()
System packages application components & resources into a .apk file Developers specify required application information in a file called AndroidManifest.xml