Android Question Switching Phone Networks

cooperlegend

Active Member
Licensed User
Longtime User
Hi

I'm looking for a way to switch from one phone network (vodafone) to another network on a roaming SIM device (looking for the strongest signal strength.

Any ideas?

I have also posted this in job offers as I suspect a library development will be needed to achieve this.
 

cooperlegend

Active Member
Licensed User
Longtime User
I currently use the following code to show the Mobile Network Settings Menu

B4X:
    Dim i As Intent
    If pPhone.GetSettings("data_roaming") = 0 Then
        Msgbox("Roaming is not enabled", "Error")
    Else
        i.Initialize(i.ACTION_MAIN, "")
        i.Action = "ACTION_NETWORK_OPERATOR_SETTINGS"
        i.SetComponent("com.android.phone/.MobileNetworkSettings")
        StartActivity(i)
    End If

But I would prefer to not give the user access to this menu and instead directly start the "Network Operators" search option (last one on this menu) to initiate a search for a better signal via another operator using roaming (data only required)

Please is anyone able to help me with this, assist will be appreciated and/or renumerated :)
 
Upvote 0

cooperlegend

Active Member
Licensed User
Longtime User
OK, sussed it

B4X:
i.SetComponent("com.android.phone/.NetworkSetting")

Now if only I could measure the signal strength of each and present this as a list to the user then this would be perfect....
 
Upvote 0
Top