Hi all.
It looks like I have same trouble on N Series (E50, E65, N70, N71, N72, N73, N95 and Samsung i520).
I tested my application on 4 sim cards. All sim cards are subscribed on same operator (MTS Russia, Corparate 3)
My sourcecode:
Code:
try {
String phone = "sms://" + getAdvProperty(PHONE_PREF);
MessageConnection outcoming = (MessageConnection)Connector.open(phone);
TextMessage textMessage = (TextMessage)outcoming.newMessage(MessageConnection.TEXT_MESSAGE);
textMessage.setAddress(phone);
textMessage.setPayloadText(getAdvProperty(CODE_PREF));
outcoming.send(textMessage);
activate();
outcoming.close();
SMSResult = true;
} catch (Throwable e) {
errorMessage = e.getClass().getName() + ", " + e.getMessage();
e.printStackTrace();
SMSResult = false;
}
Testing on two of these sim cards always return me IOException "Symbian OS Error -4812: Sim Сard error" on .send(textMessage) method. Testing with another two sim cards was ended successfully.
All sim card have same SMSC (+79112009993) and has been tested for sending SMS thru standart symbian interface. All sim card can send SMS thru my application on other phones (Sony Ericsson K750, Samsung E900, Nokia 6230 (!)... and many, many others, becouse it's our corporate test sim cards) Problem with suddenly IOException is only on N-Series.
After reading this post, I wrote test application for System.getProperty("wireless.messaging.sms.smsc")
If Sim cards doesn't send SMS, it always throw java.lang.Error: "Symbiaon OS error = -4812: Sim Card error" on getting this property
Please, help me to resolve this problem ASAP.
P.S
For example, our Nokia N70 have firmware 5.0638.3.0.1 18-09-06 RM-84
P.P.S
Standart WTK2.3 example WMADemo also throw me same exception
upd.
today I found 3 more sim cards with this issue in our office and only 2 without its...
upd2
http://sw.nokia.com/id/9edb3299-e0f4...ample_v1_0.zip
also throw IOException and sim card error
upd3
Today I tested my application, WMADemo from WTK23 and WMAExample from this forum at all available (for me) Symbian-phones
Nokia E50, E65, N70, N71, N72 and N73 show reslut like I wrote before.
Nokia N95 and Samsung i520 can get SMSC property, but still throwing IOException on send() method =(
still waiting for responce.... ask me smbd, plz
up...