Android Enthusiasts
Q&A for enthusiasts and power users of the Android operating system
Latest Questions
1
votes
0
answers
247
views
How can I disable my phone's magnetic field sensor or stop Android from using its data for `Sensor.TYPE_ROTATION_VECTOR`?
I've noticed that OsmAND's compass is much more accurate when forcing it to use the orientation sensor (`Sensor.TYPE_ORIENTATION`) instead of the magnetic field sensor (`Sensor.TYPE_MAGNETIC_FIELD`). Other (more modern) apps use `Sensor.TYPE_ROTATION_VECTOR` however and according to [the Android doc...
I've noticed that OsmAND's compass is much more accurate when forcing it to use the orientation sensor (
Sensor.TYPE_ORIENTATION
) instead of the magnetic field sensor (Sensor.TYPE_MAGNETIC_FIELD
).
Other (more modern) apps use Sensor.TYPE_ROTATION_VECTOR
however and according to [the Android documentation](https://source.android.com/docs/core/interaction/sensors/sensor-types#rotation_vector) , this combines data from the orientation sensors aswell as the magnetic field sensor.
How can I disable the magnetic field sensor entirely or prevent Android from using its data for Sensor.TYPE_ROTATION_VECTOR
?
Atemu
(609 rep)
Aug 23, 2023, 02:29 PM
13
votes
4
answers
3395
views
Why doesn't Android compass react to magnet?
I downloaded Compass program for Android and tried to bring strong magnet close to it. The pointed remained stable, as if there was no magnet nearby. Here is the [video proof on YouTube](https://youtu.be/1bhzFKHX9XU). I have checked other devices, including iPad Air 2 and they showed similar behavio...
I downloaded Compass program for Android and tried to bring strong magnet close to it. The pointed remained stable, as if there was no magnet nearby.
Here is the [video proof on YouTube](https://youtu.be/1bhzFKHX9XU) .
I have checked other devices, including iPad Air 2 and they showed similar behavior. This is drastically differs from conventional compass behavior. Also, neither device show correct cardinal directions, except conventional compass.
Why doesn't Android compass react to magnet?
**UPDATE**
Note, that magnetic field value definitely increasing when magnet is approaching.
So, the actual question is how do they try to distinguish between Earth magnetic field and magnet's magnetic field?
Also, note, that direction shown by compass is INCORRECT relatively to conventional compass.
Dims
(569 rep)
Apr 24, 2016, 05:58 PM
• Last activity: Oct 25, 2018, 09:33 AM
1
votes
1
answers
1178
views
Why does Huawei Honor 6 show something other on screen when I put a magnet on it?
Normal mode: ![normal mode][1] Magnet mode: ![magnet mode 1][2]![magnet mode 2][3] This pops up regardless of lock screen status. If I add and remove the magnet while unlocked, it does not get locked. There is also third screen with music controls when music app is running. Why does this happen? [1]...
Normal mode:
Magnet mode:

This pops up regardless of lock screen status. If I add and remove the magnet while unlocked, it does not get locked. There is also third screen with music controls when music app is running.
Why does this happen?



Vi0
(1705 rep)
Mar 4, 2015, 09:13 PM
• Last activity: Sep 22, 2015, 12:19 PM
0
votes
1
answers
5221
views
Accelerometer on Moto G is bad from factory?
I got a Motorola Moto G a few weeks ago and unfortunately it came with what I suspect is a failing accelerometer. I say that because when I open any level (bubble) application it reads random numbers in a wide range, even after the app calibration and on a flat surface (no sensor calibration on the...
I got a Motorola Moto G a few weeks ago and unfortunately it came with what I suspect is a failing accelerometer. I say that because when I open any level (bubble) application it reads random numbers in a wide range, even after the app calibration and on a flat surface (no sensor calibration on the phone settings).
Let me show you the video to make it easier to understand: http://youtu.be/FD35Uk4HmXo
I tried four different applications and all of them show the same symptoms- the bubble moving randomly in almost one full degree. When I talked to Motorola technicians they blamed the application(s), so they recommended me to return the phone and get a new one. To my surprise the new device (the one shown in the video) does the same exact thing!
Now I wonder, do I have bad luck and got two defective Moto G? Or they messed up and put a bad sensor in the devices? Or I am doing something wrong!?
Does anyone have this issue with their own Moto G?
Thanks :-)
Let me show you the video to make it easier to understand: http://youtu.be/FD35Uk4HmXo
I tried four different applications and all of them show the same symptoms- the bubble moving randomly in almost one full degree. When I talked to Motorola technicians they blamed the application(s), so they recommended me to return the phone and get a new one. To my surprise the new device (the one shown in the video) does the same exact thing!
Now I wonder, do I have bad luck and got two defective Moto G? Or they messed up and put a bad sensor in the devices? Or I am doing something wrong!?
Does anyone have this issue with their own Moto G?
Thanks :-)
Claudio
(103 rep)
Jan 7, 2014, 07:03 PM
• Last activity: Jan 30, 2015, 12:41 PM
1
votes
2
answers
257
views
What information is available to an app from the magnetometer?
I would like to know what other functionality is provided by the magnetometer inside android devices besides allowing applications to display a compass. Can an app do anything else with it besides display compass functionality?
I would like to know what other functionality is provided by the magnetometer inside android devices besides allowing applications to display a compass. Can an app do anything else with it besides display compass functionality?
user2239505
(943 rep)
Apr 7, 2013, 10:07 AM
• Last activity: Apr 7, 2013, 05:10 PM
Showing page 1 of 5 total questions