0

In my app i want like this :

User click on Button -> display all installed app with their icon (as we get in mobile screen in same index) on screen.

when click on installed app icon open specific click application.

any one giving me any idea or demo to how to do this ? thanks in advance.

Nirav Mehta
  • 1,715
  • 4
  • 23
  • 42

1 Answers1

2

You can get the list of all installed apps like this :

 final List<ApplicationInfo> pkgAppsList = context.getPackageManager().getInstalledApplications(PackageManager.GET_META_DATA);
for(ApplicationInfo app : pkgAppsList)
  {
          // here you will get all the properties of the app

           // Launch app
          Intent i=   getPackageManager().getLaunchIntentForPackage(app.packageName);
          startActivity(i);
   }
SweetWisher ツ
  • 7,296
  • 2
  • 30
  • 74