I'm sorry, but I don't understand the really reason of it.
If you need to have a different configuration for each device, you can simply get the IP of the device and the use it for to make a call to server and so you can get the configuratione file from server
If you need to send the PackageName + IP Address info you can do it with something like this
B4X:
Dim myip As String = "xxx.xxx.xxx.xxx" 'Here you will assign the real IP Address detected by the running app
Log(Application.PackageName & "_" & myip) 'Return the PackageName of the app followed by the IP detected before
Here is how to get IP address:
("ignore" is necessary for to ignore a warning message)
B4X:
Dim ssocket As ServerSocket 'ignore
Dim myip As String = ssocket.GetMyIP
Log(Application.PackageName & "_" & myip) 'Return the PackageName of the app followed by the IP detected before
Here is how to get IP address:
("ignore" is necessary for to ignore a warning message)
B4X:
Dim ssocket As ServerSocket 'ignore
Dim myip As String = ssocket.GetMyIP
Log(Application.PackageName & "_" & myip) 'Return the PackageName of the app followed by the IP detected before