ArrayAdapter directoryList = new ArrayAdapter(this,android.R.layout.simple_list_item_1, list);
setListAdapter(directoryList);
提示错误:
The method setListAdapter(ArrayAdapter) is undefined for the type fileread
我是java新手,请高手指点呀!
移到这一行,按ctrl+1 选“add this method" ,就又创建了private void setListAdapter(ArrayAdapter directoryList) 这个函数,可这函数是系统的。 而且也添加jar包的。