0

我正在使用这样的ListViewa SimpleCursorAdapter

    final ListAdapter adapter = new SimpleCursorAdapter
            (this,android.R.layout.simple_list_item_1,c,new String[] {providerclass.tablename}, new int[] {R.id.listview1}); 

我不确定 from 是否正确,我应该输入什么?

当我把它说URI没有找到。

4

1 回答 1

0

这样做:

String[] from = new String[] { "CUSTOMER" } // assuming your cursor have field "CUSTOMER"
int[] to = { android.R.id.text1 } // because android.R.layout.simple_list_item1 has such field
于 2012-04-29T09:06:12.120 回答