How to implement a click or touch listner on ListView to get application activity
<p>I have non-system application list in list view and i am trying to implement a onClicklistener or OnTouchListner on this view.But cant able to do that.
here is the code</p>

<pre><code>List&lt;ApplicationInfo&gt; list = getPackageManager().getInstalledApplications(PackageManager.GET_UNINSTALLED_PACKAGES);
for (int n=0;n&lt;list.size();n++) {
 if((list.get(n).flags &amp; 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&lt;String&gt;(this, android.R.layout.simple_list_item_1, results));
</code></pre>

<p>where result is the arraylist and lView is the ListView.</p>
