I have registered receiver dynamically with service. Will receiver work after service will die?
I have registered receiver dynamically with service. Will receiver work after service will die?
Share
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.
No. It will work briefly. Eventually, Android will terminate your process, if it thinks there are no services running (or they have been running too long) and that there are no activities in the foreground.
It is bad form for a service (or an activity) to leak a receiver.