TheLastProject / RaiseToAnswer

Simply hold your phone to your ear to answer an incoming call
https://play.google.com/store/apps/details?id=me.hackerchick.raisetoanswer
MIT License
74 stars 13 forks source link

Make the app work without magnetometer #17

Closed TheLastProject closed 4 years ago

TheLastProject commented 4 years ago

Apparently this sensor is reasonably uncommon. We could support a lot more users if we could deal with it not being available.

billthefarmer commented 4 years ago

I have a original Moto G phone which doesn't have many sensors. The proximity detector seems to be the favourite for detecting phone to ear. The Phone app must use it. It triggers as about 1cm distance.There's a very old app called Sensor Readout on F-Droid, if you haven't already found it, which is good for finding out what does what.

TheLastProject commented 4 years ago

The problem with that is that this app also offers a feature to hang up calls by flipping your phone over. With just the proximity sensor you obviously can't differentiate between those.

TheLastProject commented 4 years ago

https://github.com/TheLastProject/RaiseToAnswer/commit/7acb12e436438e066f4e6c7b0a90715589c2cc71 reinstates the support for only the Raise To Answer feature. Because we can't reliably differentiate between holding against your ear or flipping over without magnetometer, flipping over is disabled on devices without magnetometer.