hi all,
how can i get an sms sent to mobile special port of m application while my application was closed.
how can i get it when my application start agian.
best regards.
hi all,
how can i get an sms sent to mobile special port of m application while my application was closed.
how can i get it when my application start agian.
best regards.
I do not exactly understand what you are trying to achieve.
If you try to start your application via a SMS message, you should get familiar with PushRegistry functionality.
If you need to send a SMS message to another device, you should check the Wireless Messaging API (JSR-120)
Hartti
thanks for replaying,
i want to recieve sms that comes to mobile while my application was closed.
now i used PushRegistry and succeded to launch my application when sms recieved at my application port. But, i can't get the sms content the notifyIncommingMessage doesn't notify my application with this sms (PushRegistry sms).
how can i get its content.
thanks in advance,
ahmed.
Have you read the PushRegistry Java doc? If I am understanding your question correctly, you have not been able to read the incoming message which started your midlet. That is not handled through notifyIncomingMessage, but by opening "the connection with Connector.open() method to perform whatever I/O operations are needed for the particular connection type."
Hartti
When you receive an SMS (this comes in at port 0 normally) you open an sms connection and the relevant streams.
E.g.
MessageConnection mc = (MessageConnection) Connector.open("sms://3000");
InputStream is = mc.openInputStream()
hartti you should've replied with RTFM? :P