I have added:
implements GoogleApiClient.ConnectionCallbacks, LocationListener, GpsStatus.Listener
and:
mGoogleApiClient = new GoogleApiClient.Builder(context)
.addApi(LocationServices.API)
.addApi(Wearable.API)
.addConnectionCallbacks(this)
.build();
mGoogleApiClient.connect();
locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
locationManager.addGpsStatusListener(this);
and:
@Override
public void onGpsStatusChanged(int event) {
Log.d(TAG, "GPS status change: " + event);
switch(event) {
case GpsStatus.GPS_EVENT_FIRST_FIX:
break;
case GpsStatus.GPS_EVENT_SATELLITE_STATUS:
break;
}
}
But the onGpsStatusChanged is not called for the Fused Location API. Is this possible?