Can I emulate a compass on Android

后端 未结 2 1283
予麋鹿
予麋鹿 2021-01-03 06:46

I want to test a compass app on the emulator. Is this possible or do I have to use a real device. Also I do not want to use gps.

2条回答
  •  没有蜡笔的小新
    2021-01-03 07:41

    It's possible to install sensorsimulator from openintents but you can only use this as an app on the emulator and send commands from the pc. The weird thing is once you quit the app on the emulator then it stops receiving sensor simulation data. So it's useless for testing your own app! Is it possible to simulate sensor commands on the emulator to actually send sensor data? like DDMS does for GPS?

提交回复
热议问题