title: BLE - Smartphone not save the pairing of my device
body: <p>I'm working with my custom APP bluetooth and my device BLE, I have some problems. The my phone is Samsung A8 and I install the my app. If I not use the pairing with my device the APP it works very well. I can turn on/off led of my device. If I use the pairing, I click on Connect, but I not can turn on/off the led. The my smartphone works only 1 times, It only works once, after exiting and returning from the app. If I want to reconnect I will require the paired. </p>
  
  <p>I write this in my code: </p>
  
  <pre><code>private void getpaireddevices(){
      Set&lt;BluetoothDevice&gt; devicesArray = BluetoothAdapter.getDefaultAdapter().getBondedDevices();
      if(devicesArray.size() &gt; 0) {
          for(BluetoothDevice device : devicesArray) {
              device.getName();
              device.getAddress();
          }
      }
  }
  </code></pre>
  
  <p>Please Help!!</p>