简体   繁体   English

如何在 Android 的模拟器上测试 sensormanager?

[英]how to test sensormanager on emulator in Android?


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在此先感谢,阿比

It is possible, you may look at the changes in the code I had to make to test the program with the Sensor Simulator.有可能,您可以查看我为使用传感器模拟器测试程序而必须进行的代码更改

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. OpenIntents 项目有一个传感器模拟器,但我不知道它是否适用于当前传感器 API 和当前版本的 Android。

Beyond that, as @Mighter said, no, it is not possible.除此之外,正如@Mighter 所说,不,这是不可能的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM