How can I discover whether my application was activated by incoming SMS or manually?

S

Sveta

Hello,all!

I am new with J2ME.

I have Nokia 3100 and 3205, both are MIDP.10.
I need that application, like chat, will be started when SMS message
is received. I used "Nokia-SMS-Handler-n" in my jad file and it works
fine for me.

My question is: How can I discover whether my application was
activated by incoming SMS or manually?

Any suggestions are welcome.
 
D

Darryl L. Pierce

Sveta said:
I am new with J2ME.

I have Nokia 3100 and 3205, both are MIDP.10.
I need that application, like chat, will be started when SMS message
is received. I used "Nokia-SMS-Handler-n" in my jad file and it works
fine for me.

My question is: How can I discover whether my application was
activated by incoming SMS or manually?

Any suggestions are welcome.

I'm not familiar with Nokia's proprietary code, but am familiar with the
WMA. From where do you read in your data when you're handling an SMS
message, and are those input channels available when you start up?

With the WMA, you can tell whether the MIDlet was launched due to an
incoming message by checking for data in the PushRegistry. The
listConnections() API will tell you how many pending messages are waiting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top