Is there an  API which can disable events from magnet sensor ?  

If there no way to disable magnet sensor events then is there a plan to provide 
such an API in the future ? 

Reason is I have Samsung Tab S2(sm-t810) which when placed near speaker with 
powerful magnet, as soon as the tablet is close to these speakers tabley 
automatically turns off the screen. I colud find any option in settings to 
disable this.
Through adb logcat command I found the sensor events are generated by Android 
in sm-t810 tablet whenever it kept near the speaker and when it move away from 
speaker Tablet automatically turns ON the screen ( through a coverManager 
service). This seems to magnet sensor to detect closure of tablet cover/case.
Unfortunately there is no way to disable the events from magnet sensor or 
ignore the events.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/458de16c-1f45-4033-b12d-6549f9853a13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to