How can I answer a phone call and hang it up?

后端 未结 3 550
迷失自我
迷失自我 2020-12-18 10:42

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

3条回答
  •  情书的邮戳
    2020-12-18 11:00

    Yeah, one can't just use

    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

    though! Cheers...

提交回复
热议问题