Launch android secret code via B4A App

393 Views Asked by At

How can i launch ##xxxx## code with B4A?

Here is my code:

Dim st,stt As String
Dim su As StringUtils
Dim ph As Intent

st = "#"
stt = su.EncodeUrl(st,"UTF8")
Dim ussd As String = "*"&stt&"3646633"&stt&"*"stt&"*"
ph.Initialize(ph.ACTION_CALL,"tel:"&ussd)
StartActivity(ph)

After launching the app, it only showed the dialer. I want to launch engineering mode directly.

1

There are 1 best solutions below

3
Gabe Sechan On

You can't. ANdroid does not support USSD codes. There's ways to do it on certain models of phones, but nothing that's universal. USSD should be avoided anyway, its a legacy technology that was meant for the world before data plans.