如题 嘿嘿

解决方案 »

  1.   

    我也遇到这个问题:
    Cursor c = getContentResolver().query(SMS_OUTBOX, null, null, null, null);
            startManagingCursor(c);
            String[] columns = new String[] { "body" };
            int[] names = new int[] { R.id.textView1 };
            adapter = new SimpleCursorAdapter(this, R.layout.main, c, columns,names);
            //setListAdapter(adapter);注释掉的地方报错!
      

  2.   

    看看有没有extends ListActivity
      

  3.   


    你都用数据库了,就别用SimpleCursorAdapter啊 extends CursorAdapter。SimpleAdapter是属于偷懒型的。以后要该起代码来相当的方便。