|
|
|
|
|
- Differences between GO mode and runtime
- Required permissions
SMSFirst (Function) In french: SMSPremier Reads the first SMS message stored on the Android phone. The characteristics of this SMS are contained in the SMS structure. Note: Only SMS messages stored in the phone's memory can be handled by the SMS functions.
LIB_NbSMS = "Vous avez " + SMSNbMessage(smsMemory) + " messages."
ResLecture is boolean = SMSFirst(smsMemory)
WHILE ResLecture = True
TableAddLine(TABLE_TableSMS, SMS.Subscript, SMS.Message, SMS.Number, SMS.ReceiveDate)
ResLecture = SMSNext(smsMemory)
END
Syntax
<Result> = SMSFirst(<Location>)
<Result>: Boolean - True if the SMS was read. SMS.ReceiveDate, SMS.Index, SMS.Message, SMS.Number and SMS.NumberType are automatically filled. For more details, see SMS structure.
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Location>: Integer constant Location of SMS to read: | | smsMemory | SMS stored in the device memory. |
Remarks Differences between GO mode and runtime A WLanguage error is raised when SMSFirst is called in test mode (GO) (simulation on the development computer). Required permissions This function changes the permissions required by the application. Permission required: READ_SMS Business / UI classification: Business Logic Component: wd300android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|