Android - How to get application name? (Not package name)

后端 未结 12 2225
天涯浪人
天涯浪人 2020-11-27 15:17

In my manifest I have:

  

        
12条回答
  •  悲&欢浪女
    2020-11-27 15:42

    public static String getApplicationName(Context context) {
        return context.getApplicationInfo().loadLabel(context.getPackageManager());
    }
    

提交回复
热议问题