【发布时间】:2017-08-07 07:19:30
【问题描述】:
我正在使用 qpython 测试 Android API,但是当我尝试使用传感器时,它返回给我 [None, None, None]
该代码应该可以正常工作,因为它与互联网上的一些示例相同。有人遇到过这个问题并解决了吗?
### android API test ###
import androidhelper, time
droid = androidhelper.Android()
droid.startSensingTimed(1, 255)
time.sleep(1)
s = droid.sensorsReadOrientation().result
droid.stopSensing()
print s
【问题讨论】: