android - 从 Google Play 服务获取用户 ID?

标签 android google-play google-play-services

在使用 Google Play 服务时,有没有什么方法可以让我们从特定用户那里获得 Google Play ID(数字、字符串等)?

最佳答案

对于 Google Play 游戏服务,您可以使用:

String playerId = Games.Players.getCurrentPlayerId(getApiClient());

关于android - 从 Google Play 服务获取用户 ID?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26413589/

相关文章:

android - 无法停用意外上传到 Prod 的 APK

android-studio - Android Studio Google Play 服务没有自动完成功能

java - 如何解决 "Duplicate class com.google.android.gms.common.api.zzb found in modules jetified-play-services-base-11.0.1-runtime.jar"

首次登录时使用 Google plus 进行 Android 登录问题

Android:CustomView Circle Stroke 不平滑

android - emptyView 未被 listView 替换

android - 我如何为我的 Android 应用程序实现像 "auto-hide navigation"这样的 chrome?

android - android NullPointerException 在 updateLocaleListFromAppContext 中崩溃

android - 生成签名的APK - 签名版本 - 选择什么?

android - 如何从 Api 获取数据到 ListView ?