aspose file tools
The moose likes Android and the fly likes How can i change swingworker to AsyncTask of android Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "How can i change swingworker to AsyncTask of android" Watch "How can i change swingworker to AsyncTask of android" New topic
Author

How can i change swingworker to AsyncTask of android

tawisak ruksuwan
Greenhorn

Joined: Jun 24, 2011
Posts: 3
my code

private void showWeather() {
// TODO Auto-generated method stub
SwingWorker worker = new SwingWorker<WeatherInfo,Object>()
{
public WeatherInfo doInBackground()
{
YahooWeather yahooWeather = new YahooWeather();
return yahooWeather.getWeatherInfo();
}
public void done()
{
try {
WeatherInfo wInfo = get(); // get WeatherInfo result from background thread
updateGUI(wInfo);
}
catch(Exception e){}
}
};
worker.execute();
}
 
 
subject: How can i change swingworker to AsyncTask of android
 
Threads others viewed
flush JTextArea immediately
Swingworker won;t work
SWING Multiple GUI
Can any please review following piece of code
Swingworker question
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture