Android——如何从应用程序内向市场发布应用程序评级/评论?

发布于 2024-09-03 01:10:53 字数 480 浏览 3 评论 0原文

这是一个简单的问题。有没有办法允许用户直接在我的应用程序中输入对我的应用程序的评论和/或评级,并将该数据发布回 Android Market?如果是这样,如果我使用 EditText 视图来允许用户输入,那么代码会是什么样子?如果不是,那么我唯一的其他选择是直接链接到市场中的应用程序(即用户单击我的应用程序中的链接或按钮,市场应用程序启动并显示我的应用程序页面)?例如:

view.setOnClickListener( new OnClickListener(){
    public void onClick(View v) {
        startActivity( new Intent( Intent.ACTION_VIEW,
           Uri.parse("market://details?id=packagename") ) );
    }
}

*其中“packagename”被清单中我的应用程序的包名称替换。

谢谢。

This is a simple question. Is there a way to allow users to enter in a comment and or rating for my app from directly within my app and have that data posted back to the Android Market? If so, what would the code for that look like if I used an EditText view to allow user input? If not, then is my only other option directly linking to my app in the Market (i.e. the user clicks the link in my app, or a button, and the Market app launches with my app page displayed)? For example:

view.setOnClickListener( new OnClickListener(){
    public void onClick(View v) {
        startActivity( new Intent( Intent.ACTION_VIEW,
           Uri.parse("market://details?id=packagename") ) );
    }
}

*where "packagename" is replaced by my app's package name from the manifest.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

陌上芳菲 2024-09-10 01:10:53

不可以。您只能将其定向到 android market URL。没有提供从用户输入获取评级或评论的规定。

如果是这样,即使用户只给出了 2 颗星,我也会发布 5 颗星评级:)

No. You can only direct it to the android market URL. There is no provision to get the rating or comment as input from the user.

If its so, I will post 5 stars rating, even if user has given only 2 stars : )

浴红衣 2024-09-10 01:10:53

我认为一段时间内不会有市场准入。这将需要进一步的特殊应用程序权限(下载、购买、评分),因为您的应用程序可以下载市场上的任何应用程序并对其进行评分。

由于 Android 系统存在许多安全投诉,原因是用户没有阅读他们接受的权限,因此我认为 Google 不会那么快地暴露市场,而是通过一款知名的市场应用程序引导用户。

I think there will not be market access for a while. That would need further special application permissions (donwload, buy, rate) as your app then could download and rate any app in the market.

As there are many security complaints an Android based on the fact that users doesn't read the Permissions they accept, I think Google would not expose the market that fast but channel the users through one well known market app.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文