简体   繁体   中英

Receiving call / Proximity Sensor

I am developing an App where I can receive call when mobile is brought near to ear, I have done that, now problem is call is received even when something come close to sensor inside my pocket. How can I resolve this issue?

要解决此问题,您必须在接听电话之前检查设备在x,y,z方向上旋转了多少角度(通常从口袋到耳朵呈“ L”形),就像设备在移动时所产生的角度抬起耳朵,然后您就可以区分通话和口袋中的设备。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM