I have done this in AnyCut using intents, should be able to do the same by sending intents from B4A. Note you need to use escape codes for the URI formatted phone number.
I need to dial *#10# to display the remaining minutes of credit left on the phone. If I try and call the number I get a message that say's "Rejected.".
I'm guessing that I need a solution as proposed by Bluejay, but is this possible in B4A?
Dim in As Intent
in.Initialize(in.ACTION_VIEW, "tell:*#10#")
StartActivity(in)
It opens the phone call menu but with only an astrix entered in the phone number.
I adjusted my code to ...
B4X:
Dim in As Intent
in.Initialize(in.ACTION_VIEW, "tell:" & Chr(42) & Chr(35) & "10" & Chr(35))
StartActivity(in)
But still the same thing happens.
Has anyone managed to acheive this yet? In principle it is just the same as calling the voice mail or getting the phones IMEI from the inbuilt phone codes.
Thanks Erel, I'd just found a post suggesting the use of %23 and had managed to get the full number in the phone so that all the user had to do was press dial.
May I ask what is the meaning of %23?