Code example for LocationClient

Methods: disconnect, isConnected

0
    } 
 
    @Override 
    protected void onStop() { 
 
        if (mLocationClient.isConnected()) {
            stopLocationUpdates(); 
        } 
        mLocationClient.disconnect();
 
        super.onStop(); 
    } 
 
    @Override 
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present. 
        getMenuInflater().inflate(R.menu.main, menu);
        return true; 
    } 
 
    @Override