Detect outgoing calls, issue with a real device

后端 未结 1 773
死守一世寂寞
死守一世寂寞 2021-01-20 15:26

I have a strange problem. To detect outgoing calls I have registered a broadcast receiver for android.intent.action.PHONE_STATE. When the state becomes OFFHOOK,

1条回答
  •  被撕碎了的回忆
    2021-01-20 15:43

    Well, if it works on the emulator, I would expect it to work on the device. You might registering a PhoneStateListener with the TelephonyManager via listen() and see if it gets you better results.

    If you think of it, comment on this answer with the results of your testing.

    0 讨论(0)
提交回复
热议问题