我正在运行Android SDK 4.2示例包中的蓝牙聊天示例而不修改代码.我的目标是运行Android 4.2.2的Nexus 7.一旦我尝试安全连接到配对设备,我就会收到这些错误.Connect Insecure也会失败,导致类似的错误.有时,在我重新启动BT后,连接将成功.
我已经研究了这个,并在Android 4上看到了很多BT BT的引用,但我认为它们应该在随后的4.2版本中得到修复.Nexus 7是我唯一的设备,所以我想知道这是否会在其他设备上发生.
这个问题有解决方法吗?在此先感谢任何指导!
更新:经过进一步调查后,我发现此链接,表明BT资源堆栈中存在泄漏,仍然存在于4.2.2中,可以通过手动停止/重启BT来解决.有没有人找到程序化的解决方法?
04-16 08:50:48.505: E/BluetoothChat(28905): +++ ON CREATE +++
04-16 08:50:48.535: E/BluetoothChat(28905): ++ ON START ++
04-16 08:50:48.535: D/BluetoothChat(28905): setupChat()
04-16 08:50:48.535: E/BluetoothChat(28905): + ON RESUME +
04-16 08:50:48.535: D/BluetoothChatService(28905): start
04-16 08:50:48.535: D/BluetoothChatService(28905): setState() 0 -> 1
04-16 08:50:48.545: W/BluetoothAdapter(28905): getBluetoothService() called with no BluetoothManagerCallback
04-16 08:50:48.545: D/BluetoothChatService(28905): Socket Type: SecureBEGIN mAcceptThreadThread[Thread-9834,5,main]
04-16 08:50:48.545: W/BluetoothAdapter(28905): getBluetoothService() called with no BluetoothManagerCallback
04-16 08:50:48.545: D/BluetoothChatService(28905): Socket Type: InsecureBEGIN mAcceptThreadThread[Thread-9835,5,main] …Run Code Online (Sandbox Code Playgroud) 我正在使用rxvt.exe,它是msysgit附带的bash.exe的替代品.我的操作系统是WinXP.
我用"C:\ Program Files\Git\bin\rxvt.exe"调用控制台-e/usr/bin/bash --login -i
退格键将所有内容向后删除到行的开头,而不是仅删回一个char.
我已经尝试过使用像
'bind "C-e":backward-delete-char' just to see if I can bind the behavior to a ctrl sequence, and that works, but I can't figure out how to bind with the backspace key. I've tried binding to e\14 and e\08, but they don't work.
Run Code Online (Sandbox Code Playgroud)
广泛的谷歌搜索发现了大量的Linux解决方案,但对于Windows上的rxvt却很少,并没有解决这个问题.
万分感谢任何可以提供答案的人!
-Jill