is it possibe to disable incoming calls.
+3
A:
wow mate, your question is amazingly detailed, I almost feel like my answer should only say:
Yes
Luckily for you I'm in a good mood so I'll explain..
Basically, as far as I know it is not possible from typical android application.
Workaround is to enable airplane mode. It will disable all communication so as long as app is running no calls would get through. Also depends whether or not you need other networks running (Wifi etc).
But to be honest.. why would you want to do that? It should be users choice if they want to answer incoming call or not.
rochal
2010-06-17 16:02:39
Why would I want to do that .. Company reps on the road are required by internal company policy to turn off phones when driving so as not to be distracted by incoming calls. We would like to track the reps using gps hence the need to disable calls. Airplane mode is not suitable as all communication would be disabled. I understand the users choice argument but in enterprise apps it is sometimes necessary to have such control.PS Try not to be such a patronizing git.
Pierce
2010-06-18 07:49:58
LOL. I wouldn't be a 'patronizing git' if you showed at least bit of interest while posting your question, because in this form it was very likely it would stay unanswered. You know, that's how we roll here on StackOverflow - people post *descriptive* questions and others provide *detailed* answers.Next time write all this info in your initial question so we all know how to help.
rochal
2010-06-18 08:51:20
A:
I've never tried, but it looks like you might be able to do something by using the TelephonyManager
. You're going to need to have the MODIFY_PHONE_STATE
permission set as well.
Jim Kiley
2010-06-17 16:09:13