Can I emulate a compass on Android

I want to test the compass application on an emulator. Is this possible, or should I use a real device. Also I do not want to use gps.

+4
source share
2 answers

It is possible to install the sensorimulator from openintents, but you can only use it as an application on the emulator and send commands from the computer. The strange thing is when you leave the application on the emulator, then it stops receiving sensor simulation data. So it is useless to test your own application! Is it possible to simulate sensor commands on an emulator to actually send sensor data? How does DDMS do for GPS?

0
source

It seems that currently testing a hardware sensor is not possible with an emulator. At least this is what I read from emulator docs . Perhaps there is some poorly documented console program that you can use via telnet.

0
source

Source: https://habr.com/ru/post/1303075/


All Articles