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!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.