I have the following code in B4A
Which gives me a correct output:
For 56991296532 it gets 56 9 9129 6532
For 5491133954455 it gets 54 9 11 3395-4455
Both outputs are correct, as it is the way each country formats the number. Is there any similar function I can achieve this results in B4I?
Thanks
B4X:
Dim n As String="5699126532"
Dim r As Reflector
n=(r.RunStaticMethod("android.telephony.PhoneNumberUtils", "formatNumber", Array As Object("+" & n, Null), Array As String("java.lang.String", "java.lang.String")))
Which gives me a correct output:
For 56991296532 it gets 56 9 9129 6532
For 5491133954455 it gets 54 9 11 3395-4455
Both outputs are correct, as it is the way each country formats the number. Is there any similar function I can achieve this results in B4I?
Thanks