|
|
|
|
|
- Differences between GO mode and runtime
- Required permissions
SMSNbMessage (Function) In french: SMSNbMessage Returns the number of SMS messages stored on an Android phone. Note: Under Android, only SMS messages stored in the phone's memory can be handled by the SMS functions.
// 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:
| | smsMemory | SMS messages stored in the device's memory. |
<Type of information>: Integer constant Type of information requested:
| | smsTotalNb | Number 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). Required permissions This function changes the permissions required by the application. Permission required: READ_SMS Component: wd300android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|