I was just looking at this example:
Can you silence a phone from within a Service running in the background, or do you need to pass a message to the Activity so that it can silence the phone?
Any help would be greatly appreciated, thanks!
I was just looking at this example:
Can you silence a phone from within a Service running in the background, or do you need to pass a message to the Activity so that it can silence the phone?
Any help would be greatly appreciated, thanks!
Service extends Context, so you do not have to use an Activity.
This is due to how Java works. For information on inheritance, see here.
For the Service API, see here.