Android -如何在app内发布应用评级/评论?

时间:2021-11-16 15:22:46

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:

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

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.

*“packagename”由我的应用程序包名从清单中替换。

Thanks.

谢谢。

2 个解决方案

#1


2  

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.

我认为暂时不会有市场准入。这将需要进一步的特殊应用许可(donwload, buy, rate),因为您的应用程序可以下载和评估市场上的任何应用程序。

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.

由于Android有很多安全问题,因为用户没有读取他们所接受的权限,我认为谷歌不会这么快地暴露市场,而是通过一个知名的市场应用来引导用户。

#2


7  

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.

不。你只能将它直接指向android market URL。没有规定将评级或注释作为用户的输入。

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

如果是,我将发布5星评级,即使用户只给出2星:)

#1


2  

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.

我认为暂时不会有市场准入。这将需要进一步的特殊应用许可(donwload, buy, rate),因为您的应用程序可以下载和评估市场上的任何应用程序。

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.

由于Android有很多安全问题,因为用户没有读取他们所接受的权限,我认为谷歌不会这么快地暴露市场,而是通过一个知名的市场应用来引导用户。

#2


7  

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.

不。你只能将它直接指向android market URL。没有规定将评级或注释作为用户的输入。

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

如果是,我将发布5星评级,即使用户只给出2星:)