For reasons of copyright protection, individual contents should be displayed differently depending on the location of the device.
To determine the current country, it is not enough to use the "GetCountryFromDeviceSetting" function, as this only determines the country setting of the device.
An identification via geocoding is out of the question, because for data protection reasons the location via GPS identification cannot be used.
Since nowadays almost all smartphones have a SIM card, it should be possible to evaluate the currently active provider.
Does anyone have a useful tip for this?
To determine the current country, it is not enough to use the "GetCountryFromDeviceSetting" function, as this only determines the country setting of the device.
B4X:
public Sub GetCountryFromDeviceSetting As String
Dim jo As JavaObject
jo = jo.InitializeStatic("java.util.Locale").RunMethod("getDefault", Null)
Return jo.RunMethod("getCountry", Null)
End Sub
An identification via geocoding is out of the question, because for data protection reasons the location via GPS identification cannot be used.
Since nowadays almost all smartphones have a SIM card, it should be possible to evaluate the currently active provider.
Does anyone have a useful tip for this?