我正在尝试将 arraylist 方法放入 arrayadapter,但我无法这样做。我正进入(状态The constructor ArrayAdapter<String>(new Runnable(){}, int, ArrayList<RetrieveInternet>) is undefined
阵列适配器
ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, getPackages());
数组列表方法:
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;
}