Example of explicitly starting and stopping the {@link LocalService}.
This demonstrates the implementation of a service that runs in the same
process as the rest of the application, which is explicitly started and stopped
as desired.
Demo
App/Service/Local Service Controller
Source files
src/com/google/android/samples/app/LocalServiceController.java |
The Local Service Controller implementation |
src/com/google/android/samples/app/LocalService.java |
The implementation of the service itself |
/res/any/layout/local_service_controller.xml |
Defines contents of the screen |
|