如何获取Android app包名?
如何获取Android app包名?<span style="color: rgb(93, 97, 97); font-family: "Microsoft YaHei", arial; font-size: 12px;">包名又称Package Name,是应用程序在android系统中的唯一ID标识,获取方法如下:</span><br style="color: rgb(93, 97, 97); font-family: "Microsoft YaHei", arial; font-size: 12px;"><span style="color: rgb(93, 97, 97); font-family: "Microsoft YaHei", arial; font-size: 12px;">(1) 打开Eclipse,导入app 的工程,打开AndroidManifest.xml文件,展现如下:</span><br style="color: rgb(93, 97, 97); font-family: "Microsoft YaHei", arial; font-size: 12px;"><img src="https://qzonestyle.gtimg.cn/qzone/vas/opensns/res/img/android_sdk_1_4_pic_5.png" alt="android_sdk_1_4_pic_5.png" style="border: 0px; outline: 0px; vertical-align: baseline; font-size: 12px; border-radius: 3px; max-width: 100%; color: rgb(93, 97, 97); font-family: "Microsoft YaHei", arial;"><br style="color: rgb(93, 97, 97); font-family: "Microsoft YaHei", arial; font-size: 12px;"><span style="color: rgb(93, 97, 97); font-family: "Microsoft YaHei", arial; font-size: 12px;">其中,Package选项后面的com.yourcompan.yourappname就是包名,不同的app,packagename是不一样的。</span><br style="color: rgb(93, 97, 97); font-family: "Microsoft YaHei", arial; font-size: 12px;"><span style="color: rgb(93, 97, 97); font-family: "Microsoft YaHei", arial; font-size: 12px;">(2) 如果是通过文本形式打开的AndroidManifext.xml,展现如下:</span><br style="color: rgb(93, 97, 97); font-family: "Microsoft YaHei", arial; font-size: 12px;"><img src="https://qzonestyle.gtimg.cn/qzone/vas/opensns/res/img/android_sdk_1_4_pic_4.jpg" alt="android_sdk_1_4_pic_4.jpg" style="border: 0px; outline: 0px; vertical-align: baseline; font-size: 12px; border-radius: 3px; max-width: 100%; color: rgb(93, 97, 97); font-family: "Microsoft YaHei", arial;"><br style="color: rgb(93, 97, 97); font-family: "Microsoft YaHei", arial; font-size: 12px;"><span style="color: rgb(93, 97, 97); font-family: "Microsoft YaHei", arial; font-size: 12px;">同样,package字段后面填写的值 com.yourcompan.yourappname 也是包名。</span><p></p>
页:
[1]