Extension:
- URI (Uniform Resource Identifier)
- URL (Uniform Resource Locator) is generally called a web address
- Four major components of Android:
- Activity (software activity interface, with seven life cycles)
- BroatCastReciever (Broadcast)
- Content Provider (shared data)
- Service (service, such as: background can run programs)
1. Content Provider:
- Inherit ContentProvider class
- Instantiated object
- Call method
Second, the service: long-running in the background and no user interface
- What the service can do:
- Load the map
- Download the update app
- Play music in the background
- Two ways to start
- Started Service: Does not stop after starting: such as time service
- Bind Service: Bind to the application, the application closes the service and stops. With the logout of the app, it exits the
output: log.i ("marker", "output content"); (the difference with system.out.println () It can be marked)
Third, play music