Java Reference
In-Depth Information
String country;
String currentWeatherText;
String temperature;
String htmlDescription;
}
Figure 17-8 depicts the weather application that fetches data from the Yahoo!
weather service. In the third line of the displayed text, you'll notice that Seconds
till refresh: 31 is a countdown in seconds until the next time weather informa-
tion will be retrieved. The actual manipulation of HTML content occurs here.
Figure 17-8 . Weather application
The following shows the HTML that is rendered onto the WebView node:
<head>
<style type="text/css">body
{background-color:#b4c8ee;}</style>
</head>
<body id='weather_background'><b>Chicago, IL United
States</b><br />
<b id="timeOfWeatherText">Wed, 16 Apr 2014 11:49 am
CDT</b><br />
<b id="countdown"></b><br />
 
 
Search WWH ::




Custom Search