0
リストビューで非システムアプリケーションリストがあり、このビューでonClickListenerまたはOnTouchListnerを実装しようとしていますが、それを行うことはできません。ここで 結果はArrayListのであり、lViewはリストビューでコードListViewでクリックまたはタッチリスナーを実装してアプリケーションアクティビティを取得する方法
List<ApplicationInfo> list = getPackageManager().getInstalledApplications(PackageManager.GET_UNINSTALLED_PACKAGES);
for (int n=0;n<list.size();n++) {
if((list.get(n).flags & ApplicationInfo.FLAG_SYSTEM)!=1)
{
results.add(list.get(n).loadLabel(pm).toString());
Log.w("Installed Applications", list.get(n).loadLabel(pm).toString());
}
}
lView.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, results));
あります。