Skip to content

michaelben/AndroidWWO

Repository files navigation

AndroidWWO - Sample Android AppWidget for WWO API

AndroidWWO is a sample Android AppWidget for World Weather Online API. It will show weather based on your current location.

How to run

  1. Install AndroidWWO.apk on your android device.
  2. On home screen, long click to pop up context menu.
  3. Select AppWidget->AndroidWWO.

You should see result as this screenshot.

How to use

LocalWeather lw = new LocalWeather(true);
String query = (lw.new Params(lw.key)).setQ(q).getQueryString(LocalWeather.Params.class);
weather = lw.callAPI(query);

Feature

  1. Builder pattern for params used for construct query string
  2. Use XML PullParser to process XML response from API call for cheap memory footprint and fast xml processing on mobile device.

See also

  1. NodeJS client for WWO API
  2. Javascript client for WWO API
  3. Java client for WWO API
  4. Android client for WWO API
  5. Python client for WWO API

About

Sample Android AppWidget for World Weather Online API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages