Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/187.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_Accountmanager - Fatal编程技术网

允许我的android应用程序使用google帐户进行身份验证

允许我的android应用程序使用google帐户进行身份验证,android,accountmanager,Android,Accountmanager,我希望我的用户在我的应用程序中使用google帐户进行标识 我知道,通过AccountManager.getAccountsByType(“com.google”)我可以获得所有谷歌账户,并让用户选择其中一个,但如果用户想使用其他账户,我该怎么办 使用AccountManager识别用户的正确流程是什么?使用AccountPicker.newChooseAccountContent()。它创建一个对话框,让您选择使用哪个帐户,并提供创建新帐户的功能

我希望我的用户在我的应用程序中使用google帐户进行标识

我知道,通过
AccountManager.getAccountsByType(“com.google”)
我可以获得所有谷歌账户,并让用户选择其中一个,但如果用户想使用其他账户,我该怎么办


使用AccountManager识别用户的正确流程是什么?

使用
AccountPicker.newChooseAccountContent()
。它创建一个对话框,让您选择使用哪个帐户,并提供创建新帐户的功能