add your own listener to a list

view full story

http://stackoverflow.com – Here is the method createbis(): i created my own ItemOnclickListener further (public void onItemClick) but nothing happen when i just set it to a list i don't understand why public void createbis(){ setContentView(R.layout.main); final Intent mainIntent=new Intent(Intent.ACTION_MAIN,null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER) ; final PackageManager pm = getApplicationContext().getPackageManager(); final ArrayList<ResolveInfo> listP= (ArrayList<ResolveInfo>) pm.queryIntentActivities( mainIntent, 0); final int trimLength = "com.android.".lengt (HowTos)