Hi
I have an application where i am sending sms it includes multiple sms also. My application worked fine in N78. But in 6210 it is giving problem.
the code which i used to send sms is
MessageConnection conn = null;
int res = 1;
try
{
conn = (MessageConnection)Connector.open(sn);
TextMessage msge = (TextMessage)conn.newMessage(MessageConnection.TEXT_MESSAGE);
msge.setPayloadText(smstext);
try
{
conn.send(msge);
}
catch(Exception e)
{
System.out.println(e);
} try
{
conn.close();
}
catch(Exception e)
{
System.out.println(e);
}
}
catch(Exception ex)
{
System.out.println(ex);
try
{
conn.close();
}
catch(Exception e)
{
System.out.println(e);
}
res = 0;
}
return res;
While sending sms it promts a security message with yes or no options. if i select no it as to return 0.it is working fine when no try catch is applied to conn.send(), but while sending smultiple sms for the second or third sms it returns 0. But when try catch is applied there is no problem with multiple sms sending but while sending sigle sms also if i select No otion also it is returning 1. Please give me the solution
Regards
Deepa.G

Reply With Quote

