I have this scenario
onResume of an activity:
@Override
protected void onResume() {
if (adapter1!=null) adapter1.notifyDataSetChanged();
if (adapter2!=null) adapter2.notifyDataSetChanged();
if (adapter3!=null) adapter3.notifyDataSetChanged();
super.onResume();
}
Adapter has been defined as:
public class ListCursorAdapter extends SimpleCursorAdapter {
Cursor c;
/* (non-Javadoc)
* @see android.widget.CursorAdapter#onContentChanged()
*/
@Override
protected void onContentChanged() {
// this is not called
if (c!=null) c.requery();
super.onContentChanged();
}
}
And the onContentChanged event is not fired, although the onResume and the call to the adapter is issued. What is wrong?