Android Question Getting Google user ID

MoraviaVenus

Member
Licensed User
Longtime User
Hi all,

I would like to ask you, whether it is possible to get user ID (Google account ID) through B4A code? I mean the uniqe ID of user, who is registered in phone/tablet. For example when particular user owns mobile phone and two tablets, and is registered on all three devices under one name (same Google account), I wanna get the same user ID from all three instances of application installed on those devices.

One of my application uses external files to work. These files I want to sell to users (outside of Google Play), who need those files for the application. I want to bind the purchase of files to user ID, instead of device ID.

Could you please suggest me most efficient way hot to get uniqe user ID?

Thank you.
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
The code you posted is to get the user's Google Email, to get the device's ID you need to use:

But MoraviaVenus wants a way to have the same user ID on different devices not to distinguish them. Reason why i have proposed to use the user's Google address.. Any solution ?
I mean the uniqe ID of user, who is registered in phone/tablet
...
wanna get the same user ID from all three instances of application installed on those devices.
 
Last edited:
Upvote 0
Top