android中Google plus用户的人员列表
在我的应用程序中,某个用户的人员列表正确显示。。。突然间,我只能看到他们中的少数人,即使人数减少了 我使用以下代码检索我的人员,然后将其添加到列表中android中Google plus用户的人员列表,android,google-plus,Android,Google Plus,在我的应用程序中,某个用户的人员列表正确显示。。。突然间,我只能看到他们中的少数人,即使人数减少了 我使用以下代码检索我的人员,然后将其添加到列表中 try { int count = personBuffer.getCount(); Log.e("Count","Number"+count); for (int i = 0; i < count; i++)
try
{
int count = personBuffer.getCount();
Log.e("Count","Number"+count);
for (int i = 0; i < count; i++)
{
// creating new HashMap
HashMap<String, String> map = new HashMap<String, String>();
map.put(KEY_ID, personBuffer.get(i).getId());
map.put(KEY_DISPLAY_NAME, personBuffer.get(i).getDisplayName());
map.put(KEY_IMAGEPROFILE_URL, personBuffer.get(i).getImage().getUrl());
personList.add(map);
}
adapter=new FriendsAdapter(this, personList);
list.setAdapter(adapter);
}
finally
{
personBuffer.close();
}
为什么maxResults=100
注:我已编辑ID:103193341800315457743
谢谢 400响应的主体是什么?应该有错误。我看不出还有其他错误。你们所说的400人应答体是什么意思!400是HTTP状态代码,表示有错误。HTTP响应正文应该有错误的原因。您可以看到一个示例,只需点击“执行”,而不首先进行身份验证。这个例子是一个403错误。这是它应该犯的唯一错误…使用Google Plus API有限制吗?
08-04 17:27:23.409: W/GLSUser(629): GoogleAccountDataService.getToken()
08-04 17:27:23.635: W/GLSUser(629): GoogleAccountDataService.getToken()
08-04 17:27:24.198: I/qtaguid(797): Failed write_ctrl(u 70) res=-1 errno=22
08-04 17:27:24.198: I/qtaguid(797): Untagging socket 70 failed errno=-22
08-04 17:27:24.198: W/NetworkManagementSocketTagger(797): untagSocket(70) failed with errno -22
08-04 17:27:24.198: E/Volley(797): [126] tm.a: Unexpected response code 400 for https://www.googleapis.com/plus/v1/people/me/people/visible?maxResults=100&orderBy=alphabetical&pageToken=103193341800315457743