Android Question Problem dialling *#*#4636#*#* on Galaxy S2

andymc

Well-Known Member
Licensed User
Longtime User
I have a Galaxy S2 i9100 phone running OmniRom android 4.4.2. Everything is great except to select 2G preferred network I have to use the special code *#*#4636#*#* on the dialler to access the phone testing menu to switch to 2G only.

I'm trying to write a simple B4A app that will bring up this menu with one click but am getting the error:
"Connection problem or invalid MMI code"

How can I solve this?

I'm using:
B4X:
Sub Activity_Create(FirstTime As Boolean)
    Call("*#*#4636#*#*")
   
End Sub
Sub Call(Command As String)
    Dim i As Intent
    i.Initialize(i.ACTION_CALL, "tel:" & Command)'.Replace("#", "%23"))
    StartActivity(i)
End Sub
 

andymc

Well-Known Member
Licensed User
Longtime User
Thanks Erel, that causes the number to now display as A dialled number but the special menu doesn't open as it would when you type the code in manually.

Nevermind, it was only an idea. Not important if I can't get it working.
 
Upvote 0
Top