Java tutorial
//package com.java2s; //License from project: Apache License import android.content.Context; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; import android.content.pm.PackageManager.NameNotFoundException; public class Main { public static String getAppLable(Context context, String pkgName) { try { PackageManager pm = context.getPackageManager(); ApplicationInfo info = pm.getApplicationInfo(pkgName, PackageManager.GET_META_DATA); return info.loadLabel(pm).toString(); } catch (NameNotFoundException e) { e.printStackTrace(); } return null; } }