andymc Well-Known Member Licensed User Longtime User Jan 24, 2014 #1 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: Code: Copy 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
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: Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Jan 26, 2014 #2 You can use i.ACTION_DIAL to open the dialer with this code. This way the code should work. Upvote 0
andymc Well-Known Member Licensed User Longtime User Jan 28, 2014 #3 Hi Erel, thanks but it says ACTION_DIAL is an unknown member Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 29, 2014 #4 Use this string instead: "android.intent.action.DIAL" Upvote 0
andymc Well-Known Member Licensed User Longtime User Jan 29, 2014 #5 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
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.
V viljemto Member Licensed User Longtime User Jul 16, 2014 #6 Were you able to get this working? Upvote 0
andymc Well-Known Member Licensed User Longtime User Jul 17, 2014 #7 No, I changed my phone anyway. Upvote 0