Skip to content
Sample Android AppWidget for World Weather Online API
Branch: master
Clone or download
Pull request Compare This branch is 1 commit behind michaelben:master.
Latest commit 9b820b4 Mar 27, 2013
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
gen/com/example/androidwwo
image
libs
res initial commit Mar 27, 2013
src/com/example/androidwwo initial commit Mar 27, 2013
.classpath
.project
AndroidManifest.xml
README.md
proguard-project.txt
project.properties

README.md

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.
You can’t perform that action at this time.