Hello,
I would know if i am in the good way or if exists a better more simple process
I have an app that use SMS permissions (but not needs PHONE permission)
To suggest to the user the + Phone code (before the phone numbers) : +33 682000012
in relation to the Device Country code :
So, i have create a db table "CountryCodePhone" with all Codes : Country Codes + Phones Codes
273 records like that ( from E.123 : Notation for national and international telephone numbers ):
there : https://en.wikipedia.org/wiki/List_of_country_calling_codes
30: GR / 31: NL / 32: BE / 33: FR / 34: ES / 350: GI / 351: PT / 352: LU / 353: IE / 354: IS / 355: AL ...
as b4x always reserves me good surprises, is there a better way
(without asking the entire permission of the Phone, to see the phone code of the device)
Regards
Michel
I would know if i am in the good way or if exists a better more simple process
I have an app that use SMS permissions (but not needs PHONE permission)
To suggest to the user the + Phone code (before the phone numbers) : +33 682000012
in relation to the Device Country code :
B4X:
Dim r As Reflector
r.Target = r.RunStaticMethod("java.util.Locale", "getDefault", Null, Null)
Log(r.RunMethod("getCountry"))
So, i have create a db table "CountryCodePhone" with all Codes : Country Codes + Phones Codes
273 records like that ( from E.123 : Notation for national and international telephone numbers ):
there : https://en.wikipedia.org/wiki/List_of_country_calling_codes
30: GR / 31: NL / 32: BE / 33: FR / 34: ES / 350: GI / 351: PT / 352: LU / 353: IE / 354: IS / 355: AL ...
as b4x always reserves me good surprises, is there a better way
(without asking the entire permission of the Phone, to see the phone code of the device)
Regards
Michel