Android Bluetooth accept() / connect() with already paired devices
问题 I am having trouble connecting two Android devices via Bluetooth, which happens only when they have been paired before. I am running one as the server and the other as the client. Here is the sequence of things on the server side: Check various Bluetooth statuses (adapter available, is enabled, etc). call listenUsingRfcommWithServiceRecord() with a pre-defined UUID that I chose. request to make device discoverable since being discoverable happens asynchronously, I call accept() and wait for