Skip to main content

Push Registry SMS push Problem

No replies
anishk58167
Offline
Joined: 2009-05-14
Points: 0

Hii I am Using Static push sms push in my Midlet..

The Midlet registration is like this
MIDlet-Permissions: javax.microedition.io.PushRegistry, javax.microedition.io.Connector.sms, javax.wireless.messaging.sms.receive
MIDlet-Push-1: sms://:6222,mypack.push.TestPush,*

and my startApp() method is shows below

protected void startApp() throws MIDletStateChangeException {
disp.setCurrent(form1);
String conns[] = null;
conns = PushRegistry.listConnections(true);
if ( conns == null || conns.length == 0) {
// Not launched due to an incoming message
form1.append("Launched by the user\n");
}
else {
// Launched due to one or more incoming messages
form1.append("Launched by the Wap\n");
for (int i = 0; i < conns.length; i++) {
form1.append("conns["+i+"]: "+conns+"\n");
} } }

the problem is when midlet start up using sms push or user it displays "Launched by the user\n" ...?
i am using nokia 6131 emulator for testing ..
Any one help me is there is any problem in my midlet registration and startApp() method.......Or wether i have to do something more than this.....