How to notify CursorAdapter changes in my own ContentProvider

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


Sponsored Links
 Hi,

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?

Hi,

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(R.id.tabhost);
tabs.setup();
TabSpec spec1 = tabs.newTabSpec("TabOne");
spec1.setIndicator("Tab One", this.getResources().getDrawable
(R.drawable.tab_icon));
spec1.setContent(new Intent(this, MyTabClass.class));
tabs.addTab(spec1);

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

Thanks


--~--~---------~--~----~------------~-------~--~----~

3. packagemanagerservice signature verificatio

4. of databases and content providers

5. audio recording issues

6. android + WiMAX

7. Emulator is Crashing