0

我在我的 android 移动应用程序上使用 android 查询。使用 Facebook 登录非常简单:

String appid = "7315348484584";
String permisions = "email";

FacebookHandle handle = new FacebookHandle(this, appid, permisions);

String url = "https://graph.facebook.com/me";
aq.auth(handle).ajax(url, JSONObject.class, this, "bfCallback");

在回调中,我得到用户个人资料信息(姓名、电子邮件、性别等)

public void bfCallback(String url, JSONObject json, AjaxStatus status)

我怎样才能为谷歌帐户做同样的事情?

所以!我需要获取用户的 Google 帐户信息:fname、lname、电子邮件、性别。我该怎么做 -不使用 google play service等。

4

1 回答 1

0

AQuery 有一个类根据支持GoogleHandle的 Google 服务表处理对许多 Google 服务的身份验证,例如 Picasa、电子表格、Youtube、Analytics、Blogger、日历、联系人和地图。

但是,其他服务(例如 Google 帐户信息)无法通过 AQuery 获得。

于 2013-10-30T16:24:07.713 回答