• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android HID Auto Detection without scaning

Hi everyone!

Currently I was tasked to create an android service that will automatically connect an specific HID device after the keyboard power button has been turned on.

My first solution is to make the android bluetooth adapter scan for every 15-20 seconds for available devices. But I believe this solution has many disadvantages.

My second solution is to connect the HID device after its attempt on connecting to tablet. However I'm not sure if all device behave like the device I've been using. I'm using Motorola wireless keyboard and I noticed that when I start the power button to pairing, it connects first to tablet. here's the logcat after I push the paring button.

BluetoothEventLoop( 141): Device property changed: 00:0F:F6:82:05:1E property: Connected value: true


My question is: is it possible to detect an android HID device without device discovery or scanning?

Big thanks,
Mark Anthony Santos
 
Back
Top Bottom