

Have you heard about receivers in Android?

So if you wish to know how I achieved that, read on further.ĭETECT PHONE CALL STATE EVEN YOUR APPLICATION IS CLOSEDĭo you know, even when your app is closed you can detect phone call states in your Android phone from within your app?Ĭool…right? Now lets concentrate on "How to do" that! In that I had to detect the state of the phone. I was working on a pretty huge Android project recently. The main objective of this blog post is to give you an idea about how to detect phone call state in Android.Īre you trying to detect incoming call and incoming call number in your Android app?Īre you facing problem in detecting whether your phone is in ringing state, receiving state (off hook) or idle state?ĭo you wish to take any action when there is an incoming call or when the phone goes into off hook state (Phone goes into off hook state when you receive a call) or when the phone goes into idle state (when you cut your call)?
