I have two broadcast.
One is for screen on/off and second for phone state. I want to show my activity to user if screen is on but not if it is phone call.
How to manage this any help will be appreciated..
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.
you need to use if/else condition to identify Broadcast action as:
and declare your Activity in
AndroidManifest.xmlasandroid:launchMode="singleTask"and override onNewIntent to recive intent when Activity running as :