Why can't HTC Droid running OTA 2.1 communicate with RFCOMM?

后端 未结 2 1235
滥情空心
滥情空心 2020-12-18 17:51

Yesterday we received OTA Android 2.1 on my wife\'s HTC Droid - HOORAY!!! I am finally able to load my carputer app on her phone.

Well we loaded it, but it doesn\'t

相关标签:
2条回答
  • 2020-12-18 18:09

    It's a waiting game. Until HTC finishes writing drivers to support RFCOMM on this device, RFComm won't work.

    0 讨论(0)
  • 2020-12-18 18:34

    I have a HTC incredible Android 2.3.4. I've had similar issues that I've been able to work around using reflection.

    So instead of using:

    mBTSocket = mBTDevice.createRfcommSocketToServiceRecord(UUID_RFCOMM_GENERIC); 
    

    Try using:

    Method m = device.getClass().getMethod("createRfcommSocket", new Class[] {int.class});
    mBTSocket = (BluetoothSocket) m.invoke(device, 1);
    
    0 讨论(0)
提交回复
热议问题