ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / SMS functions
  • Execution on tests (Go)
  • 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
Warning
From version 25, this function should no longer be used. Starting with Android 4.4, SMS deletion through programming is no longer allowed. Using this function causes a fatal error in the application.
Deletes an SMS message from the memory of the Android phone.
AndroidAndroid Widget The system no longer allows SMS deletion through programming since Android 4.4.
Syntax
<Result> = SMSDelete(<Location> , <SMS index>)
<Result>: Boolean
  • True if the SMS was deleted,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
AndroidAndroid Widget From Android 4.4 (Kit Kat), the system no longer allows SMS deletion from the inbox. SMSDelete will always return False.
<Location>: Integer constant
Location of SMS to delete:
smsMemorySMS stored in the device memory.
smsSIMSMS stored in the SIM card
AndroidAndroid Widget This constant is not allowed and it triggers a fatal error.
<SMS index>: Integer
Index of the SMS message to be deleted. This index is returned by the SMS.Index variable. For more details, see SMS structure.
Remarks

Execution on tests (Go)

AndroidAndroid Widget 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
AndroidAndroid Widget

Required permissions

Calling this function changes the permissions required by the application.
Required permissions:
  • READ_SMS
  • WRITE_SMS
Component: wp290com.dll
Minimum version required
  • Version 10
Comments
Click [Add] to post a comment

Last update: 03/21/2023

Send a report | Local help