Location Provider
– Fused Location Provider: GPS, Satellites, Cellular Connection, WiFi Network
– Activity Recognition:
Google Api Client
Location Services: GoogleApiClientConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, LocationListener
OnConnected
OnLocationChanged
asynchronous programming
Fine and Coarse Location
Fine Location: GPS Cell and WiFi
Coarse Location: Cell and WiFi
in order to use the Google API Client
GoogleApiClient.ConnectionCallbacks,
GoogleApiClient.OnConnectionFailedListener,
LocationListener
@Override protected void onStart() super.onStart(); // Connect the Client mGoogleApiClient.connect(); @Override protected void onStop() // Disconnect the Client mGoogleApiClient.disconnect(); super.onStop();