when I call context.stopService(myService), I would like to do some setEnabled(true) or setEnabled(false) on some buttons in my android activity.
My question is: How can I an activity and change it from onDestroy() function in the service?
Thank you
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.
I am not sure whether I understand your question correctly, but if you want to set up a communication between your service and activity you should read about Bound Services. It provides the interface through which both of them can pass data to each other.