PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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 the current status of the connection to data on the mobile network or asks to be notified when the status of the connection to data changes.
Remarks:
  • This function cannot be used in the simulator. In this case, it will always return 0.
  • This function does not affect the Wi-Fi connection but the connection via a telephony operator.
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 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 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 iPhone/iPad applications.
Example
IF MobileNetworkStatus() = networkConnected THEN
BrowserRunApp("www.pcsoft.fr")
END
Syntax

Retrieving the status of the connection to data on the mobile network Hide the details

<Result> = MobileNetworkStatus()
<Result>: Integer constant
Status of the connection to data:
networkConnectedConnected.
networkConnectionInProgressConnection in progress.
Universal Windows 10 AppiPhone/iPad This constant is not available.
networkDisconnectedDisconnected.

Asking to be notified when the status of the connection to data changes on the mobile network Hide the details

<Result> = MobileNetworkStatus(<WLanguage procedure>)
<Result>: Integer constant
Status of the connection to data:
networkConnectedConnected.
networkConnectionInProgressConnection in progress.
Universal Windows 10 AppiPhone/iPad This constant is not available.
networkDisconnectedDisconnected.
<WLanguage procedure>: Procedure name
WLangage procedure ("callback" procedure) called when the status of connection to data changes.
This procedure has the following format:
PROCEDURE <Nom de la procédure>(<Nouvel état>)
<New status> is an integer constant corresponding to the new status of the connection to data:
networkConnectedConnected.
networkConnectionInProgressConnection in progress.
Universal Windows 10 AppiPhone/iPad This constant is not available.
networkDisconnectedDisconnected.
If this parameter corresponds to an empty string (""), the notifications regarding the change of connection status will not be sent anymore.
Remarks
A change of connection status can occur when the type of network used changes : for example, when switching from 2G network to 3G network (or conversely).
To find out the type of network corresponding to the current connection, use MobileNetworkConnectionInfo.
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: wd260android.jar
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment