Sending an SMS message from a Java ME application fails on Dual-SIM device
Article Metadata
Code Example
Tested with
Compatibility
Article
Contents |
Overview
On the Dual SIM phone C2-00, when creating a MIDlet that uses the Wireless Messaging API for sending an SMS, the application will fail to send the SMS if the SIM Manager is set to "Ask every time".
Description
By using the Wireless Messaging API, it is possible to send an SMS via a Java ME application. Writing a program that sends an SMS, works fine if either SIM1 or SIM2 is selected from the SIM Manager. However, if "Ask Every Time" is selected, the SIM Selection Window pops up only for a very short time and then disappears, eventually not allowing the user to select SIM. Then the phone displays "sending text messaging", but since no SIM was selected in the previous step, the message remains on the screen and the phone does not return the control back to the application.
How to reproduce
Preconditions: Two SIM cards need to be placed in the phone. The option "Ask Every Time" should be selected in the SIM Manager as follows:
Menu>SIM Manager>Ask Every Time
- Compile the code from Listening asynchronously for incoming SMS messages in Java ME or use the compiled .jar and .jad files for the SMSSenderMIDlet attached to the page.
- Install the application on the phone by using Nokia Suite or by just transfering the .jar and .jad files to the memory card.
- Run the application TestSMS from the phone
- Type a valid phone number and a text message
- Make sure that the preconditions for this error have been met.
- Press SEND
This issue can be reproduced on C2-00 software version 03.45 (released on the 14-06-11).
Solution
The only known work around on 3.45 is to select either "SIM 1" or "SIM 2" in the SIM Manager.


(no comments yet)