how to test sensormanager on emulator in Android?

2019-06-10 20:19发布


I am implementing the sensormanager to test if the device moves it should give the accuracy. But the problem is i dont have device to test this code on. Is it possible to test this sensormanager code on Emulator??

Thanks in advance, Aby

2条回答
兄弟一词,经得起流年.
2楼-- · 2019-06-10 20:24

It is possible, you may look at the changes in the code I had to make to test the program with the Sensor Simulator.

查看更多
一纸荒年 Trace。
3楼-- · 2019-06-10 20:39

The OpenIntents project has a Sensor Simulator, but I do not know if it works with the current sensor API and current versions of Android.

Beyond that, as @Mighter said, no, it is not possible.

查看更多
登录 后发表回答