Communicate with 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, and a Button to update time. Create a java file, TestService.java and add following code. … Read more