Log service creation and destruction

This commit is contained in:
cpfeiffer 2015-04-25 20:16:03 +02:00
parent 442ae6499a
commit 1772076b62
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ public class BluetoothCommunicationService extends Service {
@Override
public void onCreate() {
Log.d(TAG, "BluetoothCommunicationService is being created");
super.onCreate();
LocalBroadcastManager.getInstance(this).registerReceiver(mReceiver, new IntentFilter(GBDevice.ACTION_DEVICE_CHANGED));
}
@ -221,6 +222,7 @@ public class BluetoothCommunicationService extends Service {
@Override
public void onDestroy() {
Log.d(TAG, "BluetoothCommunicationService is being destroyed");
super.onDestroy();
LocalBroadcastManager.getInstance(this).unregisterReceiver(mReceiver);