سؤال

I have an AsyncTask that receives a list of data from the internet. What is the best procedure for returning this list to the calling thread and add it to a Spinner?

هل كانت مفيدة؟

المحلول

You should have a method in your calling thread which accepts the list as argument and adds it to the spinner. Then you can call this function from the onPostExecute() method.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top