Android Question Android ID

khwarizmi

Active Member
Licensed User
Longtime User
Hi all
Is the android_id fixed or does it change after reinstalling the system?

B4X:
Dim phone As Phone
Dim a as string = phone.GetSettings ("android_id")

thanks
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
Looks like it changes even more:
install 2 different apps on the same phone and you’ll get 2 different IDs
remove and reinstall the same app, and it will get a different ID.
it is unique for each install, not for each device
 
Upvote 0

khwarizmi

Active Member
Licensed User
Longtime User
Therefore, it cannot be relied upon to obtain a unique device identifier.
Is GetAndroidSerial a suitable option for device identification?
B4X:
Dim uid As cl_dgUID
        uid.Initialize
        Dim d As String=uid.GetAndroidSerial
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I think this is relevant to your question:
 
Upvote 0

khwarizmi

Active Member
Licensed User
Longtime User
If the user chooses the option to stop ads, the Advertising id will not be displayed, and will appear as zeros. Can I force the user to cancel this option, and will this pose a problem when uploading the application to Google Play?
 
Upvote 0
Top