What would be the best way of accomplishing this? The service is started on start-up of the application when the first activity loads. But later on in the application in a different specific activity I want to pass a variable to the service? I am new to services in Android and am wondering if anyone could point me in the right direction?
posted 3 years ago
You would send an Intent to it that is targeted at its precise class. Something like this in the Activity: