How to call the setListAdapter in android
android, listview
Solution
ListView myList=(ListView)findViewById(android.R.id.list);
myList.setAdapter(adapter);
Problem
I have a class not extend from ListActivity, so how can I replace this code without error? ``` SimpleCursorAdapter adapter = new SimpleCursorAdapter( this, R.layout.sbooks_row, cursor, from, to ); setListAdapter(adapter); ```