I am using AsyncTask to call yahooweather API. Following is the code:
public class myactivity extends Activity { final String yahooapisBase = \"http:
you are calling
Toast.makeText(getBaseContext(), e.toString(), Toast.LENGTH_LONG) .show();
in QueryYahooWeather which is being called in doInBackground.
QueryYahooWeather
doInBackground
You can not call UI calls from background thread.
UI