Skip to content

Instantly share code, notes, and snippets.

@iewnait
Created June 5, 2012 20:45
Show Gist options
  • Save iewnait/2877754 to your computer and use it in GitHub Desktop.
Save iewnait/2877754 to your computer and use it in GitHub Desktop.
Example code for Weather.query(ContentResolver cr, String[] projection)
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