How to notify CursorAdapter changes in my own ContentProvider

by silverburgh » Thu, 03 Dec 2009 09:35:23 GMT

Sponsored Links

I am writing my own ContentProvider for my own application. And there
is a ListView with a CursorAdapter pulling data from my Content
Provider.  My question is when there is a data change in my
ContentProvider, how can I notify my CursorAdatper to requery the data
and  then have the ListView updated?

Thank you.


Other Threads

1. How to configure android emulator disk space?


I want to compile a native c++ program with gnueabi-g++ running on
android emplator,
but it was failed to copy the runtime c++ library to android emulator
due to not enough disk space of emulator.How to set the emulator disk
space,or I have to compile a android image with the source?
Thanks for any help.


2. Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity

I need a way to create a TabHost which has an intent as the tabs
content, e.g:

TabHost tabs = (TabHost)findViewById(;
TabSpec spec1 = tabs.newTabSpec("TabOne");
spec1.setIndicator("Tab One", this.getResources().getDrawable
spec1.setContent(new Intent(this, MyTabClass.class));

Without extending TabActivity.

I am currently extending MapActivity, which I cannot change as it is
needed. Therefore, I currently get the following error at runtime,
when the tab is clicked:
java.lang.IllegalStateException: Did you forget to call 'public void
setup(LocalActivityManager activityGroup)'?

Is there a way to call "setup(LocalActivityManager activityGroup)"
WITHOUT extending TabActivity?

Please say there is ;)



3. packagemanagerservice signature verificatio

4. of databases and content providers

5. audio recording issues

6. android + WiMAX

7. Emulator is Crashing