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.
  • Differences between GO mode and runtime
  • Required permissions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
SMSNbMessage (Function)
In french: SMSNbMessage
Returns the number of SMS stored in the memory of the Phone Android.
Note: Under Android , only the SMS present in the memory of Phone can be handled by the SMS functions.
Versions 15 and later
Android This function is now available for Android applications.
New in version 15
Android This function is now available for Android applications.
Android This function is now available for Android applications.
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.
Example
// Nombre de SMS stockés en mémoire
LIB_NbSMS = "Vous avez " + SMSNbMessage(smsMémore) + " messages."
Syntax
<Result> = SMSNbMessage(<Location> , <Type of information>)
<Result>: Integer
  • Number of SMSs stored or number of SMSs that can be stored,
  • -1 if an error occurred. To get the details of the error, use ErrorInfo with the errMessage constant.
<Location>: Integer constant
Location of SMSs:
smsMemorySMS messages stored in the device's memory.
<Type of information>: Integer constant
Requested type of information:
smsTotalNbNumber of stored SMSs.
Remarks

Differences between GO mode and runtime

In mode GO (simulation on the development station), a WLanguage error is generated when calling the SMSNbMessagefunction.
The SMS functions can be used during a GO on the Android emulator. To simulate the sending of SMS messages to the emulator, see the documentation of the Android SDK : https://developer.android.com/studio/run/emulator#console

Required permissions

The call to this function modifies the permissions required by the application.
Required permission : READ_SMS
Component: wd270android.aar
Minimum version required
  • Version 10
Comments
Click [Add] to post a comment