开发者

QemuSensors error in the LogCat

开发者 https://www.devze.com 2023-02-01 04:49 出处:网络
When I\'m trying to implement SensorEventListener in my app, I got the following error message repeatedly in the LogCat:

When I'm trying to implement SensorEventListener in my app, I got the following error message repeatedly in the LogCat:

12-25 17:33:57.210: ERROR/QemuSensors(58): data__poll: len=-1, errno=9: Bad file number

And this is how I declare the listener inside the activity class:

private final SensorEventListener mSensorListener = new SensorEventListener() {

    public void onSensorChanged(SensorEvent se) {
        // do something
    }

    public void onAccuracyChanged(Sensor sensor, int accuracy) {
        // do something
    }
};

The strange 开发者_运维百科thing is, the app and the sensor seems to works just fine. Anyone knows how why is this happened and how to fix it?

Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号