Created
November 8, 2012 13:50
-
-
Save ignaciogs/4038911 to your computer and use it in GitHub Desktop.
Returns conditions from World Weather Online API for a given latitude and longitude
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GeoPoint center = mapView.getMapCenter(); | |
WorldWeatherOnlineApiProvider.getClient().query(new ContextAwareAPIDelegate<WorldWeatherOnlineResponse>(MainActivity.this, | |
WorldWeatherOnlineResponse.class, RequestCache.LoadPolicy.NEVER, RequestCache.StoragePolicy.DISABLED) { | |
@Override | |
public void onResults(WorldWeatherOnlineResponse worldWeatherOnlineResponse) { | |
} | |
@Override | |
public void onError(Throwable e) { | |
} | |
}, getString(R.string.world_weather_online_key), 3, | |
Query.latLng(center.getLatitudeE6() / 1E6, center.getLongitudeE6() / 1E6)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment