I have code which is supposed to answer the phone and hang up right away when someone calls the phone. I get no errors and no force close when the call comes in from a diffe
because it is reserved by system, so for answering calls we use a bluetooth trick like here and for rejecting calls we can still use TelephonyManager's endCall(); function. It actually works without such permission. Dont forget to add