When a Call is received, is there a intent of broadcast received?
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.
Please check
http://developer.android.com/reference/android/telephony/PhoneStateListener.html
You need to implement onCallStateChanged(). State that you need to monitor is CALL_STATE_RINGING.
In order to use that you need to declare the READ_PHONE_STATE permission in your manifest.
UPDATE (after suggestion):
Broadcast ACTION_PHONE_STATE_CHANGED is described under
http://developer.android.com/reference/android/telephony/TelephonyManager.html