Constructor, allocating all necessary resources for the handler
Here, it's reading the persistent preferences
Then, we retrieve the adaptive GPS records
Then, we are trying to obtain a reference to the
LocationManager - this will fail if there is no GPS on the device
Finally, it's arming the semaphore