Android Question Number to dial is displayed incorrectly

asales

Expert
Licensed User
Longtime User
I want to make a call without to use the Phone library, because of the permission.

I use this code:

B4X:
Dim i As Intent
i.Initialize("android.intent.action.DIAL", "tel:" & TelefoneLabel.Text) 'TelefoneLabel.Text=37778888
StartActivity(i)

but in display to dial shows "Telefone: 37778888" and when I click in Dial button call the number "8353366337778888"

If I use this code:
i.Initialize("android.intent.action.DIAL", "tel:3777888")
dial to the correct number, but if I use the number of the Label text don't.

How I can fix it?

Thanks in advance.
 

asales

Expert
Licensed User
Longtime User
Is this the country code / area code?
No. The country code is 55 and the area code is 31.
how I said:
if I use "tel:3777888" is Ok, but if I use "tel:" & TelefoneLabel.Text is displayed incorrectly.

I appreciate if you can help me.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
LOL
 
Upvote 0
Top