Hai is it possible to check the broadcast receiver is currently running or not?if possible how to check it?
Hai is it possible to check the broadcast receiver is currently running or not?if
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.
If you want to check it at runtime you can store a global
booleanvariable and set it tofalseand inside youronReceive()set it totrueand before theonReceive()exit set it back to false .any time you can check this global variable to tell if that broadcast receiver is running or not .
if you mean you want to know if its work or not make a message to the log cat example