J2ME - push functionality (wakeup by SMS) question

E

eidosh

when the application starts (the MIDlet starts to run) i try to find a
way how to detect if the user started to application or by the push
functionality (wakeup by SMS). till now i couldnt find a way, someone
have an idea?
 
D

Darryl L. Pierce,,,

eidosh said:
when the application starts (the MIDlet starts to run) i try to find a
way how to detect if the user started to application or by the push
functionality (wakeup by SMS). till now i couldnt find a way, someone
have an idea?

See PushRegistry.listConnections(boolean).
 
E

eidosh

listConnections retrieves the connections i m registered to, therefore
i can know if i am registered in the push registry. but how can i tell
i the push woke me up or the user?
 
D

Darryl L. Pierce,,,

eidosh said:
listConnections retrieves the connections i m registered to, therefore
i can know if i am registered in the push registry.

listConnections also tells you what connections have *data* waiting in them
to be processed, which is why I pointed it out to you. You can only have
data waiting *if* data arrived on the port to which you're registered.
but how can i tell
i the push woke me up or the user?

If there's data waiting then you were most likely woken up by the device to
handle that data. There is no mechanism that explicitly tells you whether
it was either the user or the device that awakened the MIDlet.
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top