android : listview: get cursor value on item click
问题 I create a database and table (categories) with columns (_id, title, ...) I want to read categories from db and show category list as a listview. here is y code: public class MainActivity extends listActivity{ private ArrayAdapter arrayAdapter; ArrayList results = new ArrayList(); ListView catlist; Cursor cur; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); catlist = getListView(); int parentid = getIntent