Code example for WebView

Methods: loadDataWithBaseURL

0
     
    return(bufResult.toString());
  } 
   
  void showForecast() { 
    browser.loadDataWithBaseURL(null, forecast, "text/html",
                                "UTF-8", null); 
  } 
   
  public void onLocationChanged(Location location) {
    if (weather!=null) {
      weather.getForecast(location, this);
    } 
    else { 
      Log.w(getClass().getName(), "Unable to fetch forecast -- no WeatherBinder");
    } 
  } 
   
  public void onProviderDisabled(String provider) {
    // required for interface, not used 
  }