Logcat充斥着D / ClClient:未发送Keepalive

时间:2019-01-01 13:57:40

标签: java android service

我的 logcat 充满了:

D/ClClient: Not sending keepalive.  Current connection state=STOPPED.
D/ClClient: Not sending keepalive.  Current connection state=STOPPED.
D/ClClient: Not sending keepalive.  Current connection state=STOPPED.
D/ClClient: Not sending keepalive.  Current connection state=STOPPED.

这是什么意思?

我有一个在OnStartCommand中返回 START_STICKY 的服务:

@Override
public int onStartCommand(Intent intent, int flags, int startId) {
    //Request audio focus
    if (!requestAudioFocus()) {
        //Could not gain focus
        stopSelf();
    }
    //Handle Intent action from MediaSession.TransportControls
    handleIncomingActions(intent);
    return START_STICKY;
}

问题是我的服务连接还是其他原因?

谢谢

0 个答案:

没有答案