HttpConnection hc = null;
InputStream in = null;
hc = (HttpConnection)Connector.open("www.google.com");
in = hc.openInputStream();;
----etc etc etc to read the inputstream
2. Next i create an SMS connection.
String ToPhone = "sms://123456789";
MessageConnection smsconn = null;
smsconn = (MessageConnection)Connector.open(ToPhone);
TextMessage txtmessage =
3. The httpconnection and messageconnections are also properly closed.
4. Question is -
I am able to send SMS only for the first time. When I try to run the midlet for the second time, No SMS is received at the destination Phone. and No error / exception is thrown.
Is it that a midlet or a midlet suite should not have an httpconnection and messageconnection in the same midlet?