how to test sensormanager on emulator in Android?

 ̄綄美尐妖づ 提交于 2019-12-08 10:11:59

问题



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


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/5867172/how-to-test-sensormanager-on-emulator-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!