Android Bound Service Example
This post describes how to bind to a Service and unbind a Service on Button click. Create your layout in activity_main.xml. Add a TextView for displaying date, a Button for binding to service, and another button for unbinding from Service. Create a java file, MyService.java and add following code. In AndroidManifest.xml add the Service class. … Read more