Some suggestion on Java was:
Is it possible on b4a ?
B4X:
final PackageManager pm = getContext().getPackageManager(); //Package Manager
// get a list of installed applications.
final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
// making filter of applications of ACTION_MAIN
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); // filtering the apps that are exacutable
List<ResolveInfo> appList = pm.queryIntentActivities(mainIntent, 0); // applying the filter
Collections.sort(appList, new ResolveInfo.DisplayNameComparator(pm)); // sorting the apps list
Is it possible on b4a ?