如何使用Android中的GMail地址獲取Google User ID的內容,類似「1242343543557656」?
我已經搜索了這個,只找到答案,如何獲得gmail地址和用戶名。
我想要的是谷歌提供給gmail地址的唯一ID嗎?如何使用Android中的GMail地址獲取Google用戶ID?
這些是我已經提到的一些鏈接。
- Accessing Google Account Id /username via Android
- How can I get the google username on Android?
- Get the Google ID used to download the application
- How to get the Android device's primary e-mail address
我不知道這是否會起作用。但試着看看按鈕代碼中的谷歌唱歌。它會對您進行身份驗證並返回您的用戶信息,如姓名,性別,個人資料圖片。它可能會返回您正在查找的ID。讓我知道這是否工作 –