|
|
|
|
MobileNetworkStatus (Function) In french: RéseauMobileEtat 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.
IF MobileNetworkStatus() = networkConnected THEN BrowserRunApp("www.windev.com") 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: | | networkConnected | Connected. | networkConnectionInProgress | Connection in progress. | networkDisconnected | Disconnected. |
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: | | networkConnected | Connected. | networkConnectionInProgress | Connection in progress. | networkDisconnected | Disconnected. |
<WLanguage procedure>: Procedure name WLanguage procedure ("callback" procedure) called when the status of connection to data changes. This procedure has the following format: PROCEDURE <Procedure name>(<New status>) <New status> is an integer constant corresponding to the new status of the connection to data: | | networkConnected | Connected. | networkConnectionInProgress | Connection in progress. | networkDisconnected | Disconnected. | 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).
Related Examples:
|
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: wd280android.aar
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|