A
A
Andrey Andryushchenko2016-04-19 15:55:46
Android
Andrey Andryushchenko, 2016-04-19 15:55:46

How to enable lock / unlock by magnetic sensor?

Nexus 5. I bought a magnetic case. When you close / open, the phone does not respond. Although such a function is enabled, because when you bring another magnet, the screen turns off, and when it is referred, it turns on. I downloaded the magnet unlocker program, set the required values. Everything would be fine, but the program also blocks when the cover is tilted back, which is not good. This happens because the direction of the magnetic induction vector is not taken into account, but only its module. Now the question is, is there a program that will allow you to lock / unlock the screen of the device using a magnetic sensor, taking into account the direction of the magnetic induction vector? Or is there a source code for a similar program so that I can write a similar one, but with a direction?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2016-05-12
@mbelskiy

I suspect that this is solved at the level of hardware, not the program

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question