【发布时间】:2011-09-28 05:52:38
【问题描述】:
我正在使用 Android Market api。 我用它来检索我的应用程序的所有 cmets: http://code.google.com/p/android-market-api/wiki/HowToGetAppComments
我的问题是如何知道当前用户的 authorId 是什么? 我只需要知道该用户是否已经写了评论。
谢谢!
【问题讨论】:
标签: android google-play
我正在使用 Android Market api。 我用它来检索我的应用程序的所有 cmets: http://code.google.com/p/android-market-api/wiki/HowToGetAppComments
我的问题是如何知道当前用户的 authorId 是什么? 我只需要知道该用户是否已经写了评论。
谢谢!
【问题讨论】:
标签: android google-play
您发布的链接中的示例代码显示了这一点:
public void onResult(ResponseContext context, CommentsResponse response)
{
System.out.println("Response : " + response);
// response.getComments(0).getAuthorName()
// response.getComments(0).getCreationTime()
// ...
}
基于source code,以获取第一条评论的authorID为例,应该可以使用
String id = response.getComments(0).getAuthorID();
【讨论】: