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

        Log.i(TAG, "Binding the service.");
        int flags = BuildConfig.DEBUG ? Context.BIND_DEBUG_UNBIND : 0;
        context.bindService(new Intent(context, TrackRecordingService.class), this, flags);
    }
/**
     * Resumes the track recording service connection.
     *
     * @param context the context
     */
Resumes the track recording service connection.
@param context the context
Resumes the track recording service connection . @param context the context
public void startConnection(@NonNull Context context) {
        if (trackRecordingService != null) {
            return;
        }
        Log.i(TAG, "Binding the service.");
        int flags = BuildConfig.DEBUG ? Context.BIND_DEBUG_UNBIND : 0;
        context.bindService(new Intent(context, TrackRecordingService.class), this, flags);
    }
public void startConnection ( @ NonNull Context context ) { if ( trackRecordingService != null ) { return ; } Log . i ( TAG , "Binding the service." ) ; int flags = BuildConfig . DEBUG ? Context . BIND_DEBUG_UNBIND : 0 ; context . bindService ( new Intent ( context , TrackRecordingService . class ) , this , flags ) ; }
Resumes the track recording service connection.
Resumes the track recording service connection .
// Service is already started and bound.