I have some worker thread that gets an address using the geocoder, and when its done, i want to show the result on the application thread’s TextView, using setText() from the worker thread leads to an exception, so what is the best practice to do that?
Share
Android UI Views must not be touched from external threads, Any code that calls Methods on Views must run in UI thread only. You Should use AsyncTask . It provides useful callback methods to update UI from task running in a separate thread.