cezar augustus signori wrote:
> Hi!
> 
> I have one activity that is waked-up by the AlarmManager. When it is
> waked-up, it deletes a database record that could be in a ListActivity.
> 
> Supose that the ListActivity is showing to the user all the records of
> some table. At this moment the AlarmManager wake-up another activity
> (that uses the Dialog Theme) and delete one of those records.
> 
> How to update the ListActivity's screen?

I am assuming you are using a database Cursor (e.g., from
SQLiteDatabase) for the ListActivity. In that case, just hold onto the
Cursor and call requery() on it in your ListActivity's onResume(). That
will refresh the Cursor's contents based on the current database
contents and update the UI to match.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 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