Code example for Pair

0
	} 
 
	@Override 
	public void onLocationChanged(Location location) {
		@SuppressWarnings("unchecked") 
		Fix lqLocation = new Fix(location, new Pair<String, String>("battery", "" + batteryLevel));
		 
		if (isConnected()) { 
			fixSocket.pushFix(lqLocation);
		} else { 
			// TODO: This is a crude check. Should probably be rolled into UDPClient class directly. 
			Log.w(TAG, "Network unavailable, failed to push location fix!");
		} 
	} 
 
	@Override 
	public void onProviderDisabled(String provider) {
	} 
 
	@Override