Created
June 5, 2012 20:45
-
-
Save iewnait/2877754 to your computer and use it in GitHub Desktop.
Example code for Weather.query(ContentResolver cr, String[] projection)
This file contains 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
Cursor cur = Weather.query(getContext().getContentResolver(), | |
null | |
); | |
while (cur.moveToNext()) { | |
Weather.WeatherInfo wi = Weather.getWeatherInfoFromCursor(cur); | |
// Do something useful with the weather info. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment