I am programming an app, that automatically answers a call. The problem is, that it should not answer one if I am already in a call and someone is ringing. Is there a way to achieve that?
根据该准则,如果我对<代码>TelephonyManager的状况进行核对,将改为CALL_STATE_RING
,而不是CALL_STATE_OFFTHEHOOK
。
我是否必须增加一个变化中的电话国真实的变量,以便我知道,目前有人呼吁,或者是否有更好的解决办法?
Thanks!
/edit: I answer the call without the permission Modify_Phone_State
, so it is only about finding out if there is already a call ongoing.