By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,034 Members | 822 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,034 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sveta wrote:
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.

--
Darryl L. Pierce <mc******@myrealbox.com>
Visit the Infobahn Offramp - <http://mypage.org/mcpierce>
"What do you care what other people think, Mr. Feynman?"
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.