    showErrorDialog(connectionResult.getErrorCode());
        }
    }
    ...
}
</pre>
<!--
    Connect the Location Client
 -->
<h2 id="ConnectClient">Connect the Location Client</h2>
<p>
    Now that the callback methods are in place, create the location client and connect it to
    Location Services.
</p>
<p>
    You should create the location client in <code><a href="../../reference/android/support/v4/app/FragmentActivity.html#onCreate(android.os.Bundle)">onCreate()</a></code>, then connect it in
    <c