We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
没有调用, BleManager.getInstance().disconnectAllDevice();BleManager.getInstance().destroy(); 断开连接的任务方法。
@Override protected void onDestroy() { super.onDestroy();
// BleManager.getInstance().disconnectAllDevice(); // BleManager.getInstance().destroy(); Log.d("MainActivity", "onDestroy"); }
The text was updated successfully, but these errors were encountered:
断开连接
1.如果没有主动断开连接,想保活。试试把连接放在服务里,用startForegroundService 和Notification搭配使用。
2.如果连接上,一直有数据交互,切换后台不会断开,不会杀死。
Sorry, something went wrong.
No branches or pull requests
没有调用, BleManager.getInstance().disconnectAllDevice();BleManager.getInstance().destroy();
断开连接的任务方法。
// BleManager.getInstance().disconnectAllDevice();
// BleManager.getInstance().destroy();
Log.d("MainActivity", "onDestroy");
}
The text was updated successfully, but these errors were encountered: