如何获取 Android 捆绑包/打包程序标识符
我正在为 android 编写一个需要包标识符的库 我不知道如何获取正在运行的 Android 应用程序的包标识符或等效项。
我认为它与 Intent 对象有关,无法弄清楚。
感谢您的任何建议。
I am writing a library for android that need the bundle identifier
I can not figure out how to get the bundle identifier or equivalent for my running android application.
I think it is related to the Intent object by can not figure it out.
Thank you for any suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的意思是您的应用程序的包名称吗?您可以使用 Activity.getPackageName()。
getPackageName()
Do you mean the package name for your app? You can use Activity.getPackageName().
getPackageName()
你是这个意思吗?
Do you mean this?