ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
  • WiFi connection information
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
MobileNetworkConnectionInfo (Function)
In french: RéseauMobileInfoConnexion
Returns information regarding the current connection to data on the mobile network.
Remark: This function cannot be used in the simulator and will return 0 in this case..
Example
// Activation du Wi-Fi si l'intensité du signal est suffisante pour l'accès aux données 
// via le réseau mobile
IF Val(MobileNetworkConnectionInfo(networkGSMSignal)) <= 20 _AND_ WiFiStatus() <> wifiEnabled  THEN
	IF YesNo("L'intensité du signal GSM est insuffisante. Activer le Wi-Fi ?") THEN
		WiFiActivate()
	END
END
Syntax
<Result> = MobileNetworkConnectionInfo(<Type of information>)
<Result>: Character string or Integer constant
  • Requested information.
  • If several types of information are requested, each type of information is separated by a CR character (Carriage Return).
  • The order in which the information is returned (if requested) is as follows:
    1. <Type of network>
    2. <Operator>
    3. <GSM signal>
    4. <Roaming>
    5. <Plane mode>
<Type of information>: Integer constant
Requested information:
networkAirPlaneModeManagement of plane mode.
If this information is requested, <Result> is set to:
  • "1" if the device is in airplane mode.
  • "0" otherwise.
networkGSMSignalGSM signal strength between "0" (no signal) and "100" (optimal signal).
networkOperatorName of the network operator used.
Depending on the type of network or if the plane mode is enabled, this information may not be specified.
If no SIM card is found, this information may correspond to an operator name if the phone is "Sim-locked".
networkRoamingData roaming mode.
If this information is requested, <Result> is set to:
  • "1" if the current connection uses data roaming
  • "0" otherwise.
networkTypeType of network used to access the data on the mobile network.
Data roaming mode.
If this information is requested, <Result> will be an integer:
  • network2G: 2G network
  • réseauEdge: Edge network
  • réseau3G: 3G network
  • réseau4G: 4G network
  • réseau5G: 5G network
  • networkUnknown Network unknown (or no SIM card).
Remarks

WiFi connection information

To get information about the WiFi connection, use WiFiConnectionInfo.
Related Examples:
WM System Cross-platform examples (WINDEV Mobile): WM System
[ + ] This application is an example of some of the features of WINDEV Mobile available for Android/iOS.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- Wi-Fi
- Bluetooth
- Toast
- Compass
- Accelerometer
- Camera control
- LED
- Vibration
- Notifications
- Drawing functions
- Internet
Component: wd300android.aar
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help