title: Programatically establish serverless bluetooth connection with computer
body: <p>I made an app to turn my phone (LGV20) into a PC keyboard using Android Bluetooth. I'm trying to remove the PC server code by getting my app to pair my phone as a keyboard instead of a phone. </p>
  
  <p>The only app I found that doesn't require a PC setup or rooting is <a href="https://play.google.com/store/apps/details?id=io.appground.blek&amp;hl=en" rel="nofollow noreferrer">Blek</a>. It seems that when you turn the app on it tries to pair your phone as a keyboard like I want. However, I can't figure out how they did it. I imagine they did something like this:</p>
  
  <pre><code>public class MyBluetoothAdapter extends BluetoothAdapter {
      private static final String DEVICE_PAIR_TYPE = "Keyboard"
      ...
      }
  </code></pre>
  
  <p>That's not a real variable in BluetoothAdapter but I imagine something like this was used. </p>