Code example for LocationClient

Methods: addGeofences

        // Get a PendingIntent that Location Services issues when a geofence transition occurs 
        mGeofencePendingIntent = createRequestPendingIntent();
        // Send a request to add the current geofences 
        mLocationClient.addGeofences(mCurrentGeofences, mGeofencePendingIntent, this);
     * Handle the result of adding the geofences 
    public void onAddGeofencesResult(int statusCode, String[] geofenceRequestIds) {
        // Disconnect the location client 
     * Get a location client and disconnect from Location Services