hi,
I'm registering for android.net.conn.CONNECTIVITY_CHANGE
and I'm getting the WIFI connect / disconnect events
but only the mobile disconnect event
even when I'm connected to the 3g or 4g network - I can see that using the this code - can someone explain ?
the events I'm getting are: (from the phone library)
or from the recviver
I'm registering for android.net.conn.CONNECTIVITY_CHANGE
and I'm getting the WIFI connect / disconnect events
but only the mobile disconnect event
even when I'm connected to the 3g or 4g network - I can see that using the this code - can someone explain ?
B4X:
Dim ss As ServerSocket
Dim ip,wifiIP As String
ip = ss.GetMyIP()
wifiIP = ss.GetMyWifiIP()
If (ip <> wifiIP AND ip <> "127.0.0.1" AND ip <> "") Then
Log ("My Mobile 3g/4g Ip is:" & ip)
Return ip
End If
Log ("not connected to Mobile network: ip=" & ip & " WifiIP=" & wifiIP)
Return ""
the events I'm getting are: (from the phone library)
B4X:
'ConNot:In PE_ConnectivityChanged: mobile_ims, State = DISCONNECTED Intent=(Intent) Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x10000010 (has extras) }
'ConNot:PE_ConnectivityChange Intent Extra:Bundle[{extraInfo=VZWIMS, reason=dependencyMet, networkInfo=NetworkInfo: Type: mobile_ims(11)[LTE], State: DISCONNECTED/DISCONNECTED, reason: dependencyMet, extra: VZWIMS, roaming: False, failover: False, isAvailable: False, inetCondition=100}]
or from the recviver
B4X:
'ConNot:Intent:(Intent) Intent { act=android.net.conn.CONNECTIVITY_CHANGE_IMMEDIATE flg=0x10000010 cmp=appsright.connectivitynotifier/.connectivitynotifier$connectivitynotifier_BR (has extras) }
'( 1829): ConNot:Extra2String:Bundle[{reason=dataEnabled, networkInfo=NetworkInfo: Type: mobile_ims(11)[LTE], state: DISCONNECTED/DISCONNECTED, reason: dataEnabled, extra: VZWIMS, roaming: False, failover: False, isAvailable: True, extraInfo=VZWIMS, inetCondition=100}]