Code example for CursorAdapter

Methods: notifyDataSetChanged

0
    } 
 
    public void setSelectedVendorId(String id) {
        mSelectedVendorId = id;
        if (mAdapter != null) {
            mAdapter.notifyDataSetChanged();
        } 
    } 
 
    @Override 
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        view.setBackgroundColor(Color.WHITE);
        final ListView listView = getListView();
        listView.setSelector(android.R.color.transparent);
        listView.setCacheColorHint(Color.WHITE);
    } 
 
    @Override 
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);