如何知道 Google Play 帐户

时间:2021-06-05 06:18:56

标签: android google-play accountmanager android-billing

我想知道登录 Google Play 以控制结算的用户帐户。

就我而言,我有 3 个 G-Mail 帐户。我从这段代码中获得了 3 个帐户。

        AccountManager am = AccountManager.get(this); // "this" references the current Context
        Account[] accounts = am.getAccounts();

3 个帐户具有相同类型的“com.google”。

我只想知道一个登录 Google Play 的帐户,而不是 3 个。

另一方面,我尝试了 BillingClientBillingResult 并连接 Google Play。但是这些班级没有帐号信息。

从哪里可以获得 Google Play 帐户?

0 个答案:

没有答案
相关问题