Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question