此行始终返回 null。在这种特殊情况下,上下文是一项 Activity 。非常感谢任何想法!
编辑
context.getApplicationContext().getApplicationInfo().name
仍然返回null
最佳答案
看get application name from package name的答案。那里评分最高的条目对我有用。
关于android - context.getApplicationInfo().name 始终为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12497838/