Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/204.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
对Android中的应用程序使用Google帐户登录身份验证_Android_Authentication_Gmail_Google Account - Fatal编程技术网

对Android中的应用程序使用Google帐户登录身份验证

对Android中的应用程序使用Google帐户登录身份验证,android,authentication,gmail,google-account,Android,Authentication,Gmail,Google Account,我正在创建一个需要登录的应用程序。在桌面(完整)网站上,他可以使用现有的谷歌帐户登录。在手机上,我如何让用户在android手机上使用谷歌账号登录。 安卓会允许我使用他现有的谷歌账号登录我的应用程序吗 谢谢。您可能没有使用应用程序引擎,但我认为一定有办法达到一定程度。我想如果你打电话到了这个地步: accountManager.getAuthToken(account, "ah", false, new GetAuthTokenCallback(), null); 然后处理回调,您应该能够根据

我正在创建一个需要登录的应用程序。在桌面(完整)网站上,他可以使用现有的谷歌帐户登录。在手机上,我如何让用户在android手机上使用谷歌账号登录。 安卓会允许我使用他现有的谷歌账号登录我的应用程序吗


谢谢。

您可能没有使用应用程序引擎,但我认为一定有办法达到一定程度。我想如果你打电话到了这个地步:

accountManager.getAuthToken(account, "ah", false, new GetAuthTokenCallback(), null);
然后处理回调,您应该能够根据是返回登录意图还是返回用户令牌来确定用户是否已登录。如果您不打算使用令牌,您可以忽略它,因为您知道用户已经验证了他们的帐户。如果这没有帮助,很抱歉。这是我与会计经理的经验。