Sub Process_Globals
Dim Red As Toggle
End Sub
Sub Service_Create
Red.Initialize
End Sub
Sub tuFuncion
If Red.DataConnection OR Red.WiFi Then
'Tienes levantado el wifi o el 3G...
End If
End Sub
Dim sSocket As ServerSocket
If sSocket.IsInitialized = False Then
sSocket.Initialize(8080, "sSocket")
sSocket.Close
End If
If sSocket.GetMyIP = "127.0.0.1" Then
Msgbox("No tiene conexión a internet", "Atención")
Activity.Finish
End If