AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones específicas para móviles / Funciones SMS
  • Differences between GO mode and runtime
  • Required permissions
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Reads the following 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.
Ejemplo
// Number of SMS messages stored on the phone's memory
STC_NbSMS = "You have " + SMSNbMessage(smsMemory) + " messages."
 
// Read the 1st SMS message stored on the phone's memory
ResRead is boolean = SMSFirst(smsMemory)
 
WHILE ResRead = True
// Display the characteristics of this SMS in a Table control:
// the SMS variable is automatically updated
TableAddLine(TABLE_SMSTable, SMS.Index, SMS.Message, SMS.Number, SMS.ReceiveDate)
// Read the other SMSs
ResRead = SMSNext(smsMemory)
END
Sintaxis
<Result> = SMSNext(<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:
smsMemorySMS stored in the device memory.
Observaciones

Differences between GO mode and runtime

A WLanguage error is raised when SMSNext is called in test mode (GO) (simulation on the development computer).
Las funciones SMS pueden utilizarse durante una GO en el emulador de Android. Para simular el envío de mensajes SMS al emulador, consulte la documentación del SDK de Android: https://developer.android.com/studio/run/emulator#console

Required permissions

This function changes the permissions required by the application.
Permission required: READ_SMS
Componente: wd300android.aar
Versión mínima requerida
  • Versión 10
Comentarios
Links SMS Short Number
http://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/536-envio-sms-pelo-windev-mobile/read.awp

http://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/754-trabalhando-com-httprequest-com-exemplos-que-usam-curl/read.awp

http://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/829-api-para-enviar-sms-com-garantia-entrega-short/read.awp

http://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/1239-enviar-arquivo-json-por-rest-para-webservice-sms/read.awp
BOLLER
29 09 2016

Última modificación: 30/09/2024

Señalar un error o enviar una sugerencia | Ayuda local