Use post() or postDelayed() on View. Or, use a Handler. Or, use runOnUiThread() on Activity.
On Wed, Apr 20, 2011 at 1:26 PM, Tobiah <[email protected]> wrote: > I know about AsyncTask, and I use it for this > in some cases, but I was wondering whether > there is another way for a background thread > to initiate a call to the UI thread. In some > cases I have the UI thread polling to look for > changes in the database, but that is kludgy. > > Thanks, > > Toby > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

