开发者

How to trigger an application in mobile automatically

My idea is to make an application start automatically when a message from a specific user reaches the inbox of the mobile . For example if my friend sends some numbers to my mobile, the sms has to be read and validated first and then calculator ( inbuilt mobile application) has to be triggered and process the numbers from the message. Pl开发者_运维百科ease help me with the above query.


I am far from convinced you will be able to give the phone user access to the same sms you use to launch your MIDlet.

You may need to use native development on the phones that support it if J2ME can't give you exactly what you need.

In any case, you probably want to try with J2ME first so you need to read the specifications for JSR-118 and its PushRegistry API, along with JSR-120, which interfaces with SMS.

Most current J2ME-enabled phones will support static SMS Push but you will need to send the SMS to a particular port, much like you would data over a standard library socket.


I don't think you can trigger on just any old SMS message arriving.

This is the class you want to look at, in any case:

javax.microedition.io.PushRegistry
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜