Android Question Bluetooth Automatic Pair

Discussion in 'Android Questions' started by touchsquid, Jan 21, 2015.

  1. touchsquid

    touchsquid Active Member Licensed User

    I have an android app with no touchscreen or user interface, just a display. I want to connect a phone to it via bluetooth to control the display.

    I am able to connect fine except for one thing. Every time I make the device discoverable a dialog pops up, for permission to make it discoverable. How do I programmatically accept discoverability on a device with no touchscreen or keyboard?
  2. JoanRPM

    JoanRPM Active Member Licensed User

  3. touchsquid

    touchsquid Active Member Licensed User

    This is a catch 22 -- new users are unknow until paired, I need the paring process to work with no user interface on one end.

    Actually, I think i can solve the issue by reversing the connections, making the stationary app search, and the phone discoverable, than use the BtAutoPair library to connect. That way the user on the phone can accept the dialog. I'll try this approach.
  4. touchsquid

    touchsquid Active Member Licensed User

    The Autopair approach did not work as it cannot handle "rolling" PIN codes which change every time. I'll experiment with insecure connections.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice