开发者

Application Id for android application?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜