Some more logging

live-sensor-data
cpfeiffer 2015-04-22 20:37:07 +02:00
parent ab2f5a73a8
commit 1ff1c20056
1 changed files with 3 additions and 0 deletions

View File

@ -94,8 +94,11 @@ public class BluetoothCommunicationService extends Service {
return START_NOT_STICKY;
}
Log.d(TAG, "Service startcommand: " + action);
if (!mStarted && !action.equals(ACTION_START)) {
// using the service before issuing ACTION_START
Log.i(TAG, "Must start service with " + ACTION_START + " before using it: " + action);
return START_NOT_STICKY;
}