Categories: Technical Solution | Java ME | SMS | Series 40 | S60
This page was last modified 12:55, 1 July 2008.
TSJ000393 - Difference in SMS and PushRegistry behavior in Series 40 and S60
From Forum Nokia Wiki
Subject: | Difference in SMS and PushRegistry behavior in Series 40 and S60 | TSJ000393 | |
|
| Platform(s): | Device(s), SW version(s): | |
| Series 40 Platform S60 Platform | |||
Category: | Java | ||
Subcategory: | - | ||
Description: | When a MIDlet registers SMS connections with PushRegistry, the behavior is different in Series 40 and S60. The problem can reproduced by using the Forum Nokia example MIDP 2.0: Wireless Messaging API Example. It is possible to initiate a MIDlet (WMAExample.zip in this case) with an SMS and retrieve its contents in many phone models, such as the Nokia 6101 (Series 40) and many other MIDP 2.0 models, but the same application cannot retrieve the SMS content if you try to run it on an S60 device (such as the Nokia 6600 and the Nokia N90) . Using PushRegistry.listConnections() prior to the call to the listen() method solves the problem. This should be the correct behavior, as this kind of code is the standard method for all types of PushRegistry-activated MIDlets to check the way they were started. Series 40 may have a different implementation behavior as it is a different operating system; some significant differences are known, especially for the PushRegistry. In Series 40, notifyIncomingMessage method is called when the MIDlet starts up, so the developer can retrieve the content of the message within this method. In S60, this method is not called, and the MIDlet has to use PushRegistry.listConnections(true) within startApp() method in order to perform the same operation. WMAExample.zip is an Eclipse project with an updated WMAExample.java, adding to the startApp() method the needed check for connections and messages that may be pending in the PushRegistry. | ||
Creation date: | August 24, 2006 | ||
Last modified: | October 5, 2006 | ||
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference using SmsSa3 and NclMessaging | jorom | PC Suite API and PC Connectivity SDK | 2 | 2005-12-28 09:40 |
| SMS send and received using Push Registry | tieuquai | Mobile Java Networking & Messaging & Security | 1 | 2008-04-09 17:32 |
| Receive multiple SMS problem with pushregistry | niraj_gandhi | Mobile Java Networking & Messaging & Security | 2 | 2007-06-01 06:35 |
| received sms reading problem | donaks | Symbian Networking & Messaging | 11 | 2007-08-02 06:54 |
| SMS and ports | alixwarnke | General Messaging | 2 | 2008-03-19 13:50 |

