Blocking incoming calls in android

Put your problem here if it does not fit any of the other categories.

Blocking incoming calls in android

Postby mayur.yambal » Thu Dec 24, 2009 8:35 am


I want to develop an application which blocks incoming calls (Call Blocker) in Android.There were Android internal API for that but those are removed from 1.0 onwards SDKs.We can catch incoming call event using "PhoneStateListener" class,when phone state goes to ringing.

Right now we implemented call blocking using an illusion kind of thing.When we get incoming call event in "PhoneStateListener" event,we switch a phone in AIRPLANE_MODE and again switch off that mode.But behaviour of "PhoneStateListener" is not predictable and blocking in this way is not proper blocking.

There is RIL(Radio Interface Layer) and baseband architecture behind the android telephony api.But how can we send a message to RIL for blocking a call. Is there any API/logic for blocking a call which we can implement using android NDK? OR is there any private/internal framework/API which we can use to block the calls?

Once Poster
Once Poster
Posts: 1
Joined: Thu Dec 24, 2009 8:28 am
Location: Pune


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 5 guests