Hello everyone,
I would like to create an app that connects to a MIDI device via Bluetooth connection.
I already did it thanks to the MidiBtlePairing. But in this example, we have two activities, one for starting the scan and the other one to select the device that is around.
But I would like the connection to be done automatically, without having to start the scan or to select the device. I don't want to perform any action, I just have to launch the app and the device is paired. My device has a specified name and is the only one around, so I would use ScanFilter in my code.
I'm kind of lost because all the examples that i find on the Internet have 2 activities and make the user perform actions. I'm trying to arrange pieces of the bluetooth and bluetooth.le classes in order to make it work but without success for now .
Let me know if you have an idea of how to do it, thank you for your help!
I would like to create an app that connects to a MIDI device via Bluetooth connection.
I already did it thanks to the MidiBtlePairing. But in this example, we have two activities, one for starting the scan and the other one to select the device that is around.
But I would like the connection to be done automatically, without having to start the scan or to select the device. I don't want to perform any action, I just have to launch the app and the device is paired. My device has a specified name and is the only one around, so I would use ScanFilter in my code.
I'm kind of lost because all the examples that i find on the Internet have 2 activities and make the user perform actions. I'm trying to arrange pieces of the bluetooth and bluetooth.le classes in order to make it work but without success for now .
Let me know if you have an idea of how to do it, thank you for your help!