Namespaces
Variants
Actions

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

Jump to: navigation, search


Contents

Overview

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.

Description

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.

SendingSMSwithJavaBlocks.png

How to reproduce

Download and compile the sample code found in this Wiki Article:

CS000976 - Sending a text SMS

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


Solution

No known solution is available

SignpostIcon Messages 52.png
Article Metadata

Tested with
Devices(s): Nokia Asha 200, Nokia C2-03, Nokia C2-00

Compatibility
Platform(s): Series 40

Article
Keywords: Dual SIM, SMS, SIM Manager, Selection of SIM
Created: skalogir (27 Feb 2012)
Last edited: hamishwillee (15 Jun 2012)
This page was last modified on 15 June 2012, at 05:59.
178 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved