Thanks,
I have put up the below code which runs fine on the simulator but throws IllegalArguementException on my phone set(Nokia 7610). There are no message associated with the exception (e.getMessage() returns no msgs).
It is able to execute Connector.open(addr) but fails afterwards.
Thanks.
Ahmad
public void run()
{
String addr = "sms://966504653891";
MessageConnection sender =null;
try{
sender =
(MessageConnection)Connector.open(addr);
TextMessage msg = (TextMessage)sender.newMessage(MessageConnection.TEXT_MESSAGE);
//msg.setAddress(addr);
msg.setPayloadText("Data msg test");
sender.send(msg);
Alert a = new Alert("success...");
a.setTimeout(2000);
dis.setCurrent(a);
}catch(Exception e){
Alert b = new Alert("Error",e.toString(),null,AlertType.ERROR);
b.setTimeout(5000);
dis.setCurrent(b);
//sender.close();
}
Hi Dear Ahmed
Did you have anything like Image etc. in your application? some of the phones does not support all standards for resources. this error hapens when the phone standards has a problem with your app. this is not a public error and just happens sometimes on some special phones.
Thanks
Sasan Yavari