PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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 messages stored on an Android phone.
Note: In Android, SMS functions can handle only the messages stored on the phone.
Example
// Number of SMS messages stored on the phone's memory
STC_NbSMS = "You have " + SMSNbMessage(smsMemory) + " 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 more details on 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

A WLanguage error is raised when SMSNbMessage is called in test mode (GO) (simulation on the development computer).
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