1

How does a CursorAdapter load data from Cursor provided by CursorLoader in Android?

view story
linux-howto

http://stackoverflow.com – I have implemented the following code to display Contacts as a ListView. MyAdapter extends CursorAdapter. public class MainActivity extends FragmentActivity implements LoaderManager.LoaderCallbacks<Cursor>{ private MyAdapter adapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ListView lv = (ListView)findViewById(R.id.listView_val); adapter = new MyAdapter(this, null, 1); lv.setAdapter(adapter); ..... getSupportLoader (HowTos)