Start the Midlet when New Message arrived

May 7, 2008 at 5:07 am (Mobile, Programming, Uncategorized)

If you want your midlet to start when incoming message arrived, the message should be sent with specific port where your midlet is listening.

Your jad file should look like this
MIDlet-Jar-URL: MyMidlet-0.0.1.jar
MIDlet-Jar-Size: 556255
MIDlet-Name: MyMidlet
MIDlet-Vendor: 3rd Brand Pte Ltd.
MIDlet-Version: 0.0.1
MIDlet-1: com.MyMidlet
MIDlet-Push-1: sms://:5000,MyMidlet,*
MIDlet-PortNumber: 5000
MIDlet-Permissions: javax.microedition.io.PushRegistry,javax.wireless.messaging.sms.receive

But your midlet does not automatically start when new message arrive.. It will ask you if you want to start your midlet.

Post a Comment