列表 第页
嗨我建立一个3D游戏为Android。我目前正在为一个传感器添加到我的游戏,让玩家倾斜Android作为它的控制。在理想情况下,我想使用了方向感应器,但我注意到它已经去precated。有谁知道如何检测倾斜,在Android与不使用这种传感器?解决方案 有没有实际的方向传感器 - 这是(是)实际上是一个复合传感器,由...阅读全文
I'm尝试读取我的Nexus One的光传感器的值,但I'mgetting只有以下值:I´m trying to read the values of the Light Sensor of my Nexus One, but I´mgetting only following values:10.0 225.0...阅读全文
有没有可能知道哪个方向手机指向,而在相机看preVIEW,或者你必须有手机平板就像指南针一样。is it possible to know which direction the phone is pointing while looking at the camera preview, or do you have...阅读全文
我编写了一个基于接近传感器的应用,但我希望能够让用户能够更改传感器的灵敏度。有可能吗?如果是,应如何操作?推荐答案只需"实现SensorEventListener"并遵循代码:public void onCallStateChanged(int state, String incomingNumber) {swit...阅读全文