I have two activities A and B. I need to start a service from A. The service will do some actions. I need to use some data from the service in activity B. How can I do this.
Please explain this with a sample code.
I have two activities A and B . I need to start a service
Share
You may send data via intent in StartService method.
This code from my service (StartService method)