I am trying to get the installed application in Android after clicking a icon. Under the icon click code I wrote following code:
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.ACTION_ALL_APPS);
startActivity(intent);
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.
Is it possible?
where am I doing wrong?
To get list of all installed application you can use the following code