But this only gets the language. For example i am in Turkey but using the English Language on my phone so this gives me US. Is it possible to get from the sim card maybe or from other place to get the TR ?
You could use the GPS to determine whether you are in Turkey or not.
However, the default language of the device will probably overrule almost everything. You would need to write specific code to force your app to behave as if it was set to Turkey.
Something like this, I am not sure is what are you looking for ?
B4X:
Dim sim As SimCard
sim.Initialize
Dim Country As String
Country=sim.GetNetworkCountryIso
If Country="gb" Then ToastMessageShow("Put this message in English you are probably in UK, by sure speak English",True)
If Country="ve" Then ToastMessageShow("Coloca este mensaje en Español si eres Venzolano.",True)
Something like this, I am not sure is what are you looking for ?
B4X:
Dim sim As SimCard
sim.Initialize
Dim Country As String
Country=sim.GetNetworkCountryIso
If Country="gb" Then ToastMessageShow("Put this message in English you are probably in UK, by sure speak English",True)
If Country="ve" Then ToastMessageShow("Coloca este mensaje en Español si eres Venzolano.",True)