从设备获取authorId - android
问题描述:
我正在使用Android Market api。 我用它来检索我的应用程序的所有评论: http://code.google.com/p/android-market-api/wiki/HowToGetAppComments从设备获取authorId - android
我的问题是我怎么知道什么是当前用户的authorId? 我只需要知道该用户是否已写入评论。
谢谢!
答
在链路的示例代码您发布显示了这个:
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();
这不是我的问题。我知道如何从评论中获取AuthorID。但我不知道如何从设备或用户获取AuthorID。为了更清楚我需要知道什么是AuthorID,以及如何从用户名或电话获取它? – Beno