PackageManager's applicationInfo.name is always null

前端 未结 3 1155
萌比男神i
萌比男神i 2020-12-14 18:54
PackageManager pm = this.getPackageManager();
ActivityManager am = (ActivityManager) this.getSystemService(Context.ACTIVITY_SERVICE);

List

        
3条回答
  •  孤街浪徒
    2020-12-14 19:35

    Used applicationInfo.loadLabel(packageManagerInstance) to find the Application name, but there should be a reason why applicationInfo.name didn't work.

    Edit

    applicationInfo.name is the name of a Application subclass if you have any.

提交回复
热议问题