The PackageManager class is used to get the information of application packages that are currently installed on android device. You can get an instance of PackageManager class using getPackageManager().
Below example will show you how to implement this.
1. XML layouts for the application.
This layout will be used to show the list of all installed application in a device.
This is the main activity class which is used to initialize and get the list of installed application using PackageManager class. This activity class is also using custom adapter "MyAdapter.java" class for ListView.