Bluetooth-Library icon indicating copy to clipboard operation
Bluetooth-Library copied to clipboard

Bluetooth client library for Android.

Results 12 Bluetooth-Library issues
Sort by recently updated
recently updated
newest added

I'm trying to send data using Bluetooth Classic between two paired Android devices. One device is Huawei P Smart 2019 with EMUI Android 10, the other one a Pixel 4a...

Everytime I try to connect to a device i get: `error_read failed, socket might closed or timeout, read ret: -1` Any idea?

I had experienced a crash in the app pointing to the library's `ReceiveThread`'s `run()` function. [here](https://github.com/OmarAflak/Bluetooth-Library/blob/90c36ac2f9349e6f01319c666ef16fdcef4caf76/bluetooth/src/main/java/me/aflak/bluetooth/Bluetooth.java#L556) I was wondering what could probably cause a NPE at `reader.read()`

I'm not able to receive data on the other end Data cannot be sent to the device too. module hc-06

I'm not able to receive data on the other end

Hello i try to use your library with a simple code bluetooth = new Bluetooth(this); bluetooth.setBluetoothCallback(bluetoothCallback); bluetooth.setDiscoveryCallback(discoveryCallback); if(bluetooth != null) { try { bluetooth.startScanning(); } catch (Exception e) { e.printStackTrace();...

@Override public void onConnect(BluetoothDevice device) { Display("Connected to "+device.getName()+" - "+device.getAddress()); this.runOnUiThread(new Runnable() { @Override public void run() { } }); } public void Display(final String s){ this.runOnUiThread(new Runnable() {...

I try reopen activity and connect BT, but it was error: ``` 08-02 07:03:45.892 24983-24992/com.test.bt E/System: Uncaught exception thrown by finalizer 08-02 07:03:45.892 24983-24992/com.test.bt E/System: java.io.IOException: socket not created at...

Here are the changes that would resolve #42, adding in support for multiple Bluetooth connections. I have been unable to fully test the functionality yet, but will be able to...

New Discovery callback to check if the paring failed