¡@

Home 

2014/10/16 ¤W¤È 08:27:06

android Programming Glossary: urlwithparams

Return data from AsyncTask class

http://stackoverflow.com/questions/7618614/return-data-from-asynctask-class

java android android asynctask share improve this question The key for me was to create a class called URLWithParams or something because AsyncTask will allow only 1 type to be sent IN and I needed both the URL and the params for the HTTP.. will allow only 1 type to be sent IN and I needed both the URL and the params for the HTTP request. public class URLWithParams public String url public List NameValuePair nameValuePairs public URLWithParams nameValuePairs new ArrayList NameValuePair.. for the HTTP request. public class URLWithParams public String url public List NameValuePair nameValuePairs public URLWithParams nameValuePairs new ArrayList NameValuePair and then I send it to a JSONClient public class JSONClient extends AsyncTask..