I have tried this:
final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
final List pkgAppsList = context.getPackageManager().queryIntentActivities( mainIntent, 0);
this code gives me the list of the installed app’s package name and etc. But I want only the application name’s as a string type list. what should I do?
You can use the below code ::: Refer this LINK
in the above code “results” is the array list apps installed