我試圖把一個ArrayList方法放入一個arrayadapter,但我無法這樣做。 我越來越The constructor ArrayAdapter<String>(new Runnable(){}, int, ArrayList<RetrieveInternet>) is undefined
ArrayList到ArrayAdapter
ArrayAdapter
ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, getPackages());
ArrayList的方法:
private ArrayList<RetrieveInternet> getPackages() {
ArrayList<RetrieveInternet> apps = getPermissions(true); /* false = no system packages */
final int max = apps.size();
for (int i=0; i<max; i++) {
apps.get(i);
Log.e("TAG", apps.get(i).toString());
}
return apps;
}
方法參數與聲明的參數不匹配。這些必須匹配。 –
jsmith
2012-07-30 17:03:34