Overview
NAOLocationHandle class provides the restart method that stops and stars the location service and therefore re-initializes the environment and variables are being used. However, we strongly recommend that you avoid calling this method restart just after the stop method. This means that call the restart method only while the location service is already running.
Example
NAOLocationHandle locationHandleClient;
...
locationHandleClient = new NAOLocationHandle(context, cls, "your_apikey", client, sensorsListener);
...
locationHandleClient.start();
...
locationHandleClient.restart();