Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Revision as of 03:53, 24 July 2013 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Selection between SIM1 and SIM2 for Sending an SMS in Java ME on Dual Sim Devices fails

From Wiki
Jump to: navigation, search



SIM Manager does not appear, thus preventing a MIDlet from letting the user select the proper SIM/operator for the task and send an SMS with a Java application. This only happens when 2 SIM Cards are being used simultaneously on Dual SIM devices.


By using the Wireless Messaging API it is possible to send an SMS via a Java application. Writing a program that sends an SMS on Dual SIM Devices, works fine if either SIM1 or SIM2 is selected by the user in the SIM Manager. However if "Ask Every Time" is selected, the SIM Selection Window appears only for a very short time (or not all), eventually not letting the user select which SIM will be used for the operation. The device then displays "sending text message", but since no SIM was selected in the previous step, AMS attempts to send the message indefinitely and the control is never returned back to the MIDlet.


How to reproduce

Download and compile the sample code found in the wiki article: Listening asynchronously for incoming SMS messages in Java ME

The following steps are needed in order to reproduce this error:

  1. 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
  2. Install the application on the phone by using Nokia Suite or by just transferring the .jar and .jad files to the memory card. Launch the application.
  3. Type a valid phone number and a text message
  4. Press SEND
  5. Allow the application to Send Text Message to the given number

Actual Result

The SIM Manager appears for a very short time (or not at all). Then the device's AMS takes control and attempts to send the message while the display shows "Sending text message". The later screen remains visible indefinitely as no SIM has been selected for the given task and the control is never returned back to the MIDlet.

Expected Result

The SIM Manager should not disappear. The user should be able to select either SIM1 or SIM2. The screen "Sending text message" should then remain for a while, until the message is sent. As soon as the message is sent, the control should return back to the application.

Affected Devices

This error affects the following Dual SIM devices:

  • Nokia Asha 200
  • Nokia C2-03
  • Nokia C2-00


No known solution is available

Article Metadata
Tested with
Devices(s): Nokia Asha 200, Nokia C2-03, Nokia C2-00
Keywords: Dual SIM, SMS, SIM Manager, Selection of SIM
Created: skalogir (27 Feb 2012)
Last edited: hamishwillee (24 Jul 2013)
This page was last modified on 24 July 2013, at 03:53.
132 page views in the last 30 days.