Answers for "how to get app categories android packagemanager"

0

how to get app categories android packagemanager

PackageManager pm = context.getPackageManager();
ApplicationInfo applicationInfo = pm.getApplicationInfo(packageName, 0);
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
    int appCategory = applicationInfo.category;
    String categoryTitle = (String) ApplicationInfo.getCategoryTitle(context, appCategory)
    // ...
}
Posted by: Guest on August-13-2020

Code answers related to "how to get app categories android packagemanager"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language