如何从代码中获取用户的市场帐户,即他们在谷歌市场中安装应用程序的帐户?
最佳答案
最好你尝试只获取这样的谷歌帐户:
Account[] accounts = AccountManager.get(this).getAccountsByType("com.google");
for (Account account : accounts) {
// this is where the email should be in:
String email = account.name;
}
关于android - 如何获取用户的谷歌市场帐户?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8985716/