Code example for LocationClient

Methods: requestLocationUpdates

0
 
  /** 
   * Callback called when connected to GCore. Implementation of {@link ConnectionCallbacks}. 
   */ 
  @Override 
  public void onConnected(Bundle connectionHint) {
    mLocationClient.requestLocationUpdates(
        REQUEST,
        this);  // LocationListener
  } 
 
  /** 
   * Callback called when disconnected from GCore. Implementation of {@link ConnectionCallbacks}. 
   */ 
  @Override 
  public void onDisconnected() { 
    // Do nothing 
  } 
 
  /** 
   * Implementation of {@link OnConnectionFailedListener}.