Service Binding - Android SDK

If you are an advanced user, you can bind to the tracking service from your Activity and call any public methods. This may be useful if you want to trigger API calls from your application's UI.
Local service binding can be easily achieved, but with great power comes great responsibility.

Once the Service binding has completed you can call methods from the service instance like mService.getTracker() or mService.getSession(). These two objects are the backbone of the Geoloqi SDK and expose many useful methods. For example, once you have an instance of LQSession you can make calls to the Geoloqi REST API.
Note that you should always make sure you start the tracking service explicitly before attempting to bind to it. If you bind to the tracking service using the BINDAUTOCREATE flag the service may not continue to function once your Activity has stopped.