Another developer uses java to get the AndroidId with this statement,
CODIGO JAVA:
while I use this other one.
B4X FUNCION (only use getsetting one time in my app, move valur to public var v_AndroidId)
Should it return the same value?
I say this because it seems that in some cases it does not match. It seems that this number was one when I installed an application, and another at this time, which puzzles us.
CODIGO JAVA:
B4X:
androidd = android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID)
while I use this other one.
B4X FUNCION (only use getsetting one time in my app, move valur to public var v_AndroidId)
B4X:
public Sub GetAndroidId() As String
Dim p As Phone
'tags: Perminal dispositivo
'Terminal para la tabla TerminalesApp
If V_AndroidId = "" Then
V_AndroidId = P.GetSettings("android_id")
End If
Return V_AndroidId
End Sub
Should it return the same value?
I say this because it seems that in some cases it does not match. It seems that this number was one when I installed an application, and another at this time, which puzzles us.