So I did that to get all the applications:
final Intent mainIntent = new Intent();
final List<ResolveInfo> pkgAppsList = getApplicationContext()
.getPackageManager().queryIntentActivities(mainIntent, 0);
How do I get a specific application by its name?
Use the following code for getting all application names installed on device in List. And you can query the list by name.