Convert your thread to an AsyncTask and use onProgressUpdate() or
onPostExecute() as appropriate.

Or, use post() (called on some widget).

Or, use a Handler.

Or, use runOnUiThread() (called on your activity)

On Sat, Mar 24, 2012 at 8:00 PM, paulo <paul.a.taylo...@gmail.com> wrote:
> Hi all,
>
>
> A minor issue I am having for an app is that when sync'ing some data,
> completed through a thread/ProgressDialog, I need to refresh the
> underlying Activity. I can't seem to work out how to do this from the
> Thread however, surely it can't be that hard right?
>
>
> Any pointers much appreciated
>
>
> Paul
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> 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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to