开发者

Application Id for android application?

开发者 https://www.devze.com 2023-03-14 11:33 出处:网络
i need to fetch the applic开发者_如何学JAVAation for android application, how to fetch that app id , i got that app id using Urban air ship ,it is of the form \"ab4f3aa5-b169-4fed-82bc-ce6c39240517

i need to fetch the applic开发者_如何学JAVAation for android application, how to fetch that app id , i got that app id using Urban air ship ,it is of the form "ab4f3aa5-b169-4fed-82bc-ce6c39240517 " , whereas i need to fetch this one using native code, if there is any way to achieve this?

Thanks.


Is this ID standard ? I thought package name was unique and the main ID for apps.

To get the package name of an app, use

activity.getApplicationContext().getApplicationInfo().packageName;

Regards, Stéphane

0

精彩评论

暂无评论...
验证码 换一张
取 消