title: Implementing a service to communicate against a BLE device
body: <p><br>I am working on an android project that requires communication against a BLE device.
  <br>as for now I am quite done - however I have one thing I cant solve - 
  <br> I want to use a service to coomunicate against the BLE device and communicate
  <br>with thata service only by sending and recieving broadcasts.
  <br>my question is - for some reason when I try to connect to the device inside the service 
  <br>by making the service extend LeScancallbak finding the device and connecting to it takes much longer and also the BLE GATT server is null (since the gattcallback is never called) <br>however if I bind the service to activity and implement that LeScancallbak in the activity its a metter of acouple of milliseconds - 
  <br> Did anyone also had the same problem or possibly have an answer to that strange behavior?</p>
  
  <p><br>
  I want to use only the service to communicate against the bluetooth device since I want to stay connected to the device even when the application UI is not running (i.e. leave a background service) plus it looks more logical that connecting every activity to that service upon changing screens.
  <br> In case anyone have a better way to achieve that, I wil be happy to hear about it.</p>