AsyncTask and Contexts

后端 未结 5 1425
情书的邮戳
情书的邮戳 2020-12-28 16:59

So I\'m working out my first multi-threaded application using Android with the AsyncTask class. I\'m trying to use it to fire off a Geocoder in a second thread, then update

5条回答
  •  难免孤独
    2020-12-28 17:28

    I did some more research, and someone suggested passing it to the thread (not sure why I didn't think of that). I passed it to the Geocoder thread through an argument, and just like that, it worked.

提交回复
热议问题