It is not possible to receive USSD commands in Android. You can send with the following code:
B4X:
Sub Activity_Create(FirstTime As Boolean)
Call("*#123#")
EndSubSub Call(Command As String)
Dim i As Intent
i.Initialize(i.ACTION_CALL, "tel:" & Command.Replace("#", "%23"))
StartActivity(i)
EndSub
It is not possible to receive USSD commands in Android. You can send with the following code:
B4X:
Sub Activity_Create(FirstTime As Boolean)
Call("*#123#")
EndSubSub Call(Command As String)
Dim i As Intent
i.Initialize(i.ACTION_CALL, "tel:" & Command.Replace("#", "%23"))
StartActivity(i)
EndSub
It is not possible to receive USSD commands in Android. You can send with the following code:
B4X:
Sub Activity_Create(FirstTime As Boolean)
Call("*#123#")
EndSubSub Call(Command As String)
Dim i As Intent
i.Initialize(i.ACTION_CALL, "tel:" & Command.Replace("#", "%23"))
StartActivity(i)
EndSub
The above piece of code throws errors when StartActivity(i) line is to be executed.
The error is about CALL_PHONE permission required. Error snapshot is attached.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.