我尝试设置蓝牙连接,如下所示:
private class ConnectThread extends Thread {
private final BluetoothSocket mmSocket;
private final BluetoothDevice mmDevice;
BluetoothSocket connection = null;
public ConnectThread(BluetoothDevice device) {
mmDevice = device;
// Get a BluetoothSocket
我正在尝试通过蓝牙从我的android发送文本,以便在arduino的串行监视器上显示。我有一个按钮,当我点击它时,它应该发送文本,但我一直收到这个错误。有人知道问题出在哪里吗?
01-12 01:53:10.849: E/BluetoothSocket(25004): java.io.IOException: Transport endpoint is not connected
01-12 01:53:10.849: E/BluetoothSocket(25004): at android.bluetooth.BluetoothSocket.writeNative(Native Me
我正在尝试创建一个示例Xamarin Android应用程序,通过蓝牙连接设备。
当我试图连接蓝牙套接字时,我得到了以下错误
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3819/96c7ba6c/source/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
a
我正面临着一个奇怪的问题,那就是Android蓝牙打印机。当我第一次尝试连接打印机设备时,我遇到了以下问题 BluetoothAdapter: getBluetoothService() called with no BluetoothManagerCallback
java.io.IOException: read failed, socket might closed or timeout, read ret: -1
at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:738)
at andr
在StackOverflow上已经有很多关于如何配对和连接远程蓝牙设备与安卓的问题了。我已经尝试了所有的,还没有找到任何关于与远程设备配对的适当链接或文档。
另外,关于我尝试以编程方式将我的笔记本电脑与android连接,但我收到以下错误:
java.io.IOException: Service discovery failed
at android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:395)
at android.bluetooth.BluetoothSocket.connect(Bluetooth
在过去的两天里,我尝试解决了这个问题。我在这个论坛上看到了很多关于这个问题的解决方案,并且尝试了很多类似于和的解决方案,但是没有luck.For
服务器代码()
public class Main {
private final LocalDevice mLocalDevice;
public static void main(String[] args) throws IOException, InterruptedException
{
new Main().start();
}
public Main() throws IOE
我正在使用maven android插件来构建我的项目并将它们部署到设备上。
使用mvn clean install android:undeploy android:deploy,我可以成功地部署到我的2.2中兴刀片:
[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
[INFO] Successfully uninstalled com.jameselsey.apps from P