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
Reads the first SMS stored in the memory of the Phone Android. The characteristics of this SMS are contained in the SMS structure.
Remark: Only SMS messages found in the phone memory 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(smsMemory) + " messages."
 
// Lecture du 1er SMS stocké en mémoire
ResLecture is boolean = SMSFirst(smsMemory)
 
WHILE ResLecture = True
// Affichage des caractéristiques de ce SMS dans un champ Table:
// la variable SMS est automatiquement mise à jour
TableAddLine(TABLE_TableSMS, SMS.Subscript, SMS.Message, SMS.Number, SMS.ReceiveDate)
// Lecture des autres SMS
ResLecture = SMSNext(smsMemory)
END
Syntax
<Result> = SMSFirst(<Location>)
<Result>: Boolean
  • True if the SMS was read. SMS.ReceiveDate, SMS.Subscript, SMS.Message, SMS.Number and SMS.NumberType are automatically filled. For more details, see SMS structure.
  • False otherwise. To get the details of the error, use ErrorInfo with the errMessage constant.
<Location>: Integer constant
Location of SMS to read:
smsMemorySMS stored in the device memory.
Remarks

Differences between GO mode and runtime

In mode GO (simulation on the development station), a WLanguage error is generated when calling the SMSFirstfunction.
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