Code example for LocationClient

Methods: getLastLocation

0
		Toast.makeText(this, "LocationService.onDisconnected", Toast.LENGTH_SHORT).show();
	} 
 
	@Override 
	public void onLocationChanged(Location location) {
		mLocation = mLocationClient.getLastLocation();
	} 
	 
    @Override 
	public int onStartCommand(Intent intent, int flags, int startId) {
 
		startGPS(); 
		 
		Toast.makeText(this, "LocationService.onStartCommand", Toast.LENGTH_SHORT).show();
 
		return super.onStartCommand(intent, flags, startId);
	} 
 
	private void startGPS() { 
		if (!checkGooglePlayService()) { 
			this.stopSelf();