src/main/java/de/dennisguse/opentracks/services/TrackRecordingServiceConnection.java
public void startAndBind(Context context) {
        if (trackRecordingService != null) {
            // Service is already started and bound.
            return;
        }

        Log.i(TAG, "Starting the service.");
        context.startService(new Intent(context, TrackRecordingService.class));

        startConnection(context);
    }
/**
     * Starts and binds the service.
     */
Starts and binds the service.
Starts and binds the service .
public void startAndBind(Context context) {
        if (trackRecordingService != null) {
            return;
        }
        Log.i(TAG, "Starting the service.");
        context.startService(new Intent(context, TrackRecordingService.class));
        startConnection(context);
    }
public void startAndBind ( Context context ) { if ( trackRecordingService != null ) { return ; } Log . i ( TAG , "Starting the service." ) ; context . startService ( new Intent ( context , TrackRecordingService . class ) ) ; startConnection ( context ) ; }
Starts and binds the service.
Starts and binds the service .
// Service is already started and bound.