Code example for LocationClient

Methods: getLastLocation, isConnected, requestLocationUpdates

0
	} 
 
	@Override 
	public void onConnected(Bundle arg0) {
		// TODO Auto-generated method stub 
		Toast.makeText(this, "Connected....", Toast.LENGTH_LONG).show();
		if(locationclient != null && locationclient.isConnected()) {
			locationrequest = LocationRequest.create();
			locationrequest.setInterval(100);
			locationclient.requestLocationUpdates(locationrequest, this);
			Location last = locationclient.getLastLocation();
			first_read = true;
			focus_on_me(last);
		} 
	} 
 
	@Override 
	public void onDisconnected() { 
		// TODO Auto-generated method stub 
	}