1. Are you ready for the Galaxy S20? Here is everything we know so far!

Android HID Auto Detection without scaning

Discussion in 'Android Accessories' started by tonymark09, Dec 20, 2011.

  1. tonymark09

    tonymark09 Lurker
    Thread Starter

    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
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Android HID Auto
  1. Jared Zaldonis
    Replies:
    0
    Views:
    99
  2. Jyotimoy Kashyap
    Replies:
    1
    Views:
    105
  3. BoolTech
    Replies:
    1
    Views:
    231
  4. tube517
    Replies:
    2
    Views:
    323
  5. stealthpaws
    Replies:
    3
    Views:
    293
  6. BuckLikesAndroid
    Replies:
    6
    Views:
    363
  7. cidea
    Replies:
    3
    Views:
    337
  8. DaneWells91
    Replies:
    14
    Views:
    516
  9. RedHeadDev
    Replies:
    4
    Views:
    419
  10. Anirudha Deshpande
    Replies:
    0
    Views:
    241

Share This Page

Loading...