... | ... | @@ -34,7 +34,9 @@ MainWindow.getMainWindow().runOnMainThread(() -> { |
|
|
|
|
|
You can see it in the examples, we change the UI between lines [74-79](https://github.com/TotalCross/SmsManagerSample/blob/master/src/main/java/totalcross/sample/smsmanager/app/SmsManagerSample.java#L74-L79) and we ask to repaint the control between lines [81-85](https://github.com/TotalCross/SmsManagerSample/blob/master/src/main/java/totalcross/sample/smsmanager/app/SmsManagerSample.java#L81..L85)
|
|
|
|
|
|
Please note that you can only have a single class intercepting SMS at a time; calling the method `SmsManager.registerSmsReceiver(SmsReceiver)` will replace the older `SmsReceiver` with the new one. If you wish to stop intercepting SMS, pass `null` as the argument to `registerSmsReceiver`.
|
|
|
Please note that you can only have a single class intercepting SMS at a time; calling the method `SmsManager.registerSmsReceiver(SmsReceiver)` or `SmsManager.registerSmsReceiver(SmsReceiver receiver, int port)`
|
|
|
- will replace the older `SmsReceiver` with the new one. If you wish to stop intercepting SMS, pass `null` as the argument to `registerSmsReceiver`.
|
|
|
- the `port` is required to listen to incoming SMS messages and SMS data messages. If you want to listen on the default port, just need a pass -1 `port` for text messages.
|
|
|
|
|
|
### `SmsMessage` object
|
|
|
|
... | ... | |