PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns information regarding the current connection to data on the mobile network.
Note: This function cannot be used in the simulator and it will return 0 in this case.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
Versions 22 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 22
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Example
// Activation of the Wi-Fi if the signal intensity is strong enough to access the data
// via the mobile network
IF MobileNetworkConnectionInfo(networkGSMSignal) <= 20 _AND_ WiFiStatus() <> wifiEnabled THEN
IF YesNo("The intensity of the GSM signal is not sufficient. Enable the Wi-Fi?") THEN
WiFiActivate()
END
END
Syntax
<Result> = MobileNetworkConnectionInfo(<Type of Information>)
<Result>: Character string
  • 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
Requested information:
networkRoamingRoaming mode of data.
If this information is requested, <Result> is set to:
  • 1 if the current connection uses the data roaming
  • 0 otherwise.
iPhone/iPad This constant is not available.
networkAirPlaneModeManagement of plane mode.
If this information is requested, <Result> is set to:
  • 1 if the device is in plane mode.
  • 0 otherwise.
iPhone/iPadUniversal Windows 10 App This constant is not available.
networkOperatorName of 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".
networkGSMSignalIntensity of the GSM signal included between 0 (no signal) and 100 (optimum signal).
This information is available on the devices running Android version 2.2 or later (api level 8).
The intensity will be equal to 0 for the earlier versions of the system.
To find out the version of Android system on which the application is run, use SysAndroidVersion.
iPhone/iPad This constant is not available.
networkTypeType of network used to access the data on the mobile network.
Roaming mode of data.
If this information is requested, <Result> is set to:
  • network2G: 2G network
  • networkEdge: Edge network
  • network3G: 3G network
  • network4G: 4G network
  • networkUnknown: Unknown network (or SIM card not found).
Remarks
To get information about the WiFi connection, use WiFiConnectionInfo.
Related Examples:
Android System Android (WINDEV Mobile): Android System
[ + ] This application is a tutorial example presenting some of the new features of WINDEV Mobile for Android.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- WIFI
- Bluetooth
- Toast
- Progress Bar control
- 9-image mode
- Compass
- Accelerometer
- Camera control
- LED
- Vibrations
- Notifications
- Drawing functions
- Internet
Components
Android wd230android.jar
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment