Basic Android ComponentsOnline version The fundamental components of an Android app. by James Darvell 1 Group 1 2 Group 2 3 Group 3 4 Group 4 5 Group 5 Service Allows two processes to communicate Does work in the background Does work for external applications Intent Represents an Event Message to system to start a component Starts a service Starts an Activity Starts a broadcast recevier BroadcastReceiver Receives intents that have been broadcast Acts as a gateway to other components Responds to events Activity Displays a user interface May contain Fragments Handles user input Can return a result Goes on the back stack ContentProvider Maintains application data Can interact with a database