My application starts a service that detects phone shaking. When the service detects a shake, it searches for a BT device within range and if a suitable device is found, it connects to it and sends data to it. To check if the system is killing the service, I turn on the vibration when it detects shaking. Everything works fine