Namespaces
Variants
Actions

Sending an SMS message from a Java ME application fails on Dual-SIM device

Jump to: navigation, search
Article Metadata

Code Example
Source file: Media:SMSMIDlet.zip
Installation file: Media:TestSMS.zip

Tested with
Devices(s): C2-00

Compatibility
Platform(s): Series 40 6th Edition
Device(s): Dual SIM Devices

Article
Keywords: Dual SIM, Messaging, SMS
Created: skalogir (30 Sep 2013)
Last edited: skalogir (13 Jul 2012)

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
  1. 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.
  2. Install the application on the phone by using Nokia Suite or by just transfering the .jar and .jad files to the memory card.
  3. Run the application TestSMS from the phone
  4. Type a valid phone number and a text message
  5. Make sure that the preconditions for this error have been met.
  6. 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.


 
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