android - 如何判断电话是被本地挂断的还是被远端挂断的?
高洛峰
高洛峰 2017-04-17 13:06:35
0
1
342

在写一个 Android 小应用,通过电话的状态广播,已能够知道电话什么时候通什么时候断,但不知道电话是被本地挂断的还是被远端挂断的。至今还没搜到相应的 API,望各路大神支个招,谢谢。

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
巴扎黑

Let me give you an idea. Try to get the size of the hangup button on the answering interface, and then determine the user's touch position.
Some Android users have set the power button to hang up and you can also monitor the power button.
It’s just an idea. I’m not doing Android development. Please forgive me if I’m wrong~

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!