getting installed applications programmattically
<p>I am trying to get the installed application in android after clicking a icon. Under the icon click code I wrote following code:</p>

<pre><code>Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.ACTION_ALL_APPS);
startActivity(intent);
</code></pre>

<p>But it kills the application. I want to show the installed applications on the screen programmatically like when we see when press app key on android.</p>

<p>Is it possible?
where am I doing wrong?
Thank you in advance.</p>
