Android Question Switching Phone Networks

Discussion in 'Android Questions' started by cooperlegend, Jul 3, 2015.

  1. cooperlegend

    cooperlegend Active Member Licensed 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.
     
  2. cooperlegend

    cooperlegend Active Member Licensed User

    I currently use the following code to show the Mobile Network Settings Menu

    Code:
    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 :)
     
  3. cooperlegend

    cooperlegend Active Member Licensed User

    OK, sussed it

    Code:
    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....
     
Loading...
  1. 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.
    Dismiss Notice