Maodge Member Licensed User May 9, 2018 #1 hello, how to get country code in B4A, and which lib should i use? I want use this parameter for automatic selection of language. thanks.
hello, how to get country code in B4A, and which lib should i use? I want use this parameter for automatic selection of language. thanks.
R ronell Well-Known Member Licensed User Longtime User May 9, 2018 #2 https://www.b4x.com/android/forum/threads/ahlocale-library.7561/#post-43067 Upvote 0
klaus Expert Licensed User Longtime User May 9, 2018 #3 You can use the AHLocale library. And with this code: B4X: Private AHL As AHLocale AHL.Initialize Log(AHL.DisplayCountry) Log(AHL.Country) DisplayCountry returns the full country name, 'Suisse' in my case, french language setting. Country returns the country code, 'CH' in my case Upvote 0
You can use the AHLocale library. And with this code: B4X: Private AHL As AHLocale AHL.Initialize Log(AHL.DisplayCountry) Log(AHL.Country) DisplayCountry returns the full country name, 'Suisse' in my case, french language setting. Country returns the country code, 'CH' in my case