分享应用程序]连结" Android中应用程序、QUOT、Android

2023-09-05 10:12:55 作者:肆无忌惮°

我想我的应用程序用户能够分享/推荐我的应用程序给其他用户。我用的是ACTION_SEND意图。我加文字说明称线沿线的东西:安装这个很酷的应用程序。但我不能找到一种方法,使用户能够直接进入,例如市场的安装界面。我可以为他们提供一个网站链接或一些文字。 换句话说,我要寻找一个非常直接的方式为Android用户已经安装了应用程序。

I want my application user to be able to share/recommend my app to other users. I use the ACTION_SEND intent. I add plain text saying something along the lines of: install this cool application. But I can't find a way to enable users to directly go to the install screen of market place for instance. All I can provide them with is a web link or some text. In other words I am looking for a very direct way for android users to have my app installed.

感谢您的帮助/指针,

托马斯

推荐答案

托马斯,

您想为用户提供了市场:// 链接,这将带给他们直接向您的应用程序的详细信息页面。以下是从developer.android.com:

You would want to provide your users with a market:// link which will bring them directly to the details page of your app. The following is from developer.android.com:

加载应用程序的详细信息页

Loading an application's Details page

在Android Market中每个应用程序   有一个详细信息页面,提供了一个   概述申请的用户。   例如,在网页包括短   应用程序和屏幕的说明   它使用的镜头,如果由提供   显影剂,以及反馈   关于用户和信息   开发商。详细信息页还   包括安装按钮,让   用户触发下载/购买   的应用程序。

In Android Market, every application has a Details page that provides an overview of the application for users. For example, the page includes a short description of the app and screen shots of it in use, if supplied by the developer, as well as feedback from users and information about the developer. The Details page also includes an "Install" button that lets the user trigger the download/purchase of the application.

如果要引用用户一个   特定的应用程序,你的   应用程序可以直接把用户   应用程序的详细信息页面。至   这样做,你的应用程序发送一个   ACTION_VIEW意向,其中包括一个URI   在这种格式的查询参数:

If you want to refer the user to a specific application, your application can take the user directly to the application's Details page. To do so, your application sends an ACTION_VIEW Intent that includes a URI and query parameter in this format:

市场://细节ID =

market://details?id=

在这种情况下,包名   参数为目标应用程序的   完全限定的包名称,   在包属性声明   在manifest元素   应用程序的清单文件。对于   例如:

In this case, the packagename parameter is target application's fully qualified package name, as declared in the package attribute of the manifest element in the application's manifest file. For example:

市场://细节ID = com.example.android.jetboy

market://details?id=com.example.android.jetboy

来源: http://developer.android.com/guide/publishing/publishing。 HTML

 
精彩推荐
图片推荐