Moto wrote: > Sorry for not giving any details on that post. I assumed that what > you are saying was already happening... So in the case I delete the > item my list does get updated but now its blank since there are no > items on my database. I want to handle this case by applying a new > view which would tell the user, "hey my table is empty!"
Ah. Try Cursor#registerDataSetObserver(). That will let you know when the data has changed. You can then ask the Cursor to getCount(), and therefore detect the empty-list condition. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

