67,513
社区成员
发帖
与我相关
我的任务
分享
class MySensorEventListener implements SensorEventListener {
@Override
public void onSensorChanged(SensorEvent event) {
azimuth = event.values[0];
pitch = event.values[1];
roll = event.values[2];
。。。。。。。。。。。。。。。。。。。。。。。。。。
if (res != null) {
id = (int) res.getAttribute("Id")
Log.i(TAG, id + "天");
}
} catch (Exception e) {
e.printStackTrace();
}
}
public String init() {
return id+“天”;
}