查找包名称为Android应用程序使用的意图,从网络发射市场应用意图、应用程序、市场、网络

2023-09-12 06:54:10 作者:人生就是用大把的时间迷茫,然后在几个瞬间成长。今天小编来分享

我要创建一个移动网站,将包含一个页面,使人们可以下载,我们建议相关的应用程序。我发现说明创建的链接,启动市场,但这个假定您的有问题的应用程序的开发者和知道确切的包名。

I'm creating a mobile website that will include a page from which people can download relevant apps that we recommend. I've found instructions for creating the links to launch the Market but this assumes that you are the developer of the app in question and know the exact package name.

有没有什么办法让包名,其他不仅仅是联系开发商,并要求?

Is there any way to get the package name, other than just contacting the developers and asking?

此外,事实证明,这些指令并没有真正用于创建Web超链接工作。他们只给你一个URI中的Java code在另一个Android应用程序的字符串来引用。我们的网站是在Drupal,所以Java是行不通的。

Also, it turns out that those instructions don't really work for creating web hyperlinks. They only give you a URI to reference in a string of Java code in another Android app. Our site is in Drupal, so Java is not going to work.

对于iPhone,我发现容易说明获取URL /链接样式我需要从iTunes商店,所以我在寻找这样的信息。

For the iPhone, I found easy instructions for getting the URL/link style I need from the iTunes store, so I'm looking for info like that.

推荐答案

这要看在什么地方,你想要得到的信息。你有一大堆的选择:

It depends where exactly you want to get the information from. You have a bunch of options:

如果您有.apk文件的副本,它打开它作为一个压缩文件,并查看AndroidManifest.xml文件中只是一个案件。顶级&LT;舱单&GT; 元素将有一个属性 如果您有应用程序安装在设备上,并可以连接使用亚洲开发银行,你可以启动亚行外壳和执行点列表包-f ,其中显示每个已安装的APK包的名称。 如果你只是想手动查找了几个包名,你可以搜索在 HTTP应用程序:// WWW。 cyrket.com/m/android/ 和包名称会显示在网址 您也可以用做progmatically从一个Android应用程序的 PackageManager If you have a copy of the .apk, it's just a case of opening it as a zip file and looking at the AndroidManifest.xml file. The top level <manifest> element will have a package attribute. If you have the app installed on a device and can connect using adb, you can launch adb shell and execute pm list packages -f, which shows the package name for each installed apk. If you just want to manually find a couple of package names, you can search for the app on http://www.cyrket.com/m/android/, and the package name is shown in the URL You can also do it progmatically from an Android app using the PackageManager

一旦你的包名,您只需链接到市场://搜Q = PNAME:&LT;程序包&GT; http://market.android.com/search?q=pname:<package_name> 。双方将打开市场的Andr​​oid设备上;后者显然要工作在其他硬件的潜力,(它不会在一分钟)。

Once you've got the package name, you simply link to market://search?q=pname:<package_name> or http://market.android.com/search?q=pname:<package_name>. Both will open the market on an Android device; the latter obviously has the potential to work on other hardware as well (it doesn't at the minute).