You can use a Handler object to post messages between threads.

Specifically for database updates, you can use ContentResolver.notify, so
that any cursor based adapters watching a related URI are automatically
requeried (updating a ListView, if attached to one).
20.04.2011 21:27 пользователь "Tobiah" <[email protected]> написал:
> 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

-- 
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

Reply via email to