| android Programming Glossary: inetloaderAndroid, can I put AsyncTask in a separate class and have a callback? http://stackoverflow.com/questions/10768449/android-can-i-put-asynctask-in-a-separate-class-and-have-a-callback   I'm just learning about AsyncTask and want to use it as a separate class rather then a subclass. For example class inetloader extends AsyncTask String Void String @Override protected String doInBackground String... urls String response  DefaultHttpClient.. String result Log.e xx result how do I pass this result back to the thread that created me  and the main ui thread inetloader il new inetloader il.execute http www.google.com il.onResult do something... Thanks  java android android asynctask   share.. Log.e xx result how do I pass this result back to the thread that created me  and the main ui thread inetloader il new inetloader il.execute http www.google.com il.onResult do something... Thanks  java android android asynctask   share improve this question.. 
 |