I am not being able to start my MIDLET using the push registry mechanism. I am using the netbeans mobility pack emuluator to execute the program. In the startApp of my application I have
connections = PushRegistry.listConnections(false);
and whenever a connection comes it starts a new thread. But the value of the connection is always null and connection.length is zero.
My Client keeps sending SMS requests but the server midlet in which the push registry is initiated does not start.
In the application Descriptor I have added the following
MIDLET class : Server.SMSReceive_S
Sender IP : *
Connection String : sms://:5000
and in the API permissions I have added the following API permissions
javax.microedition.io.PushRegistry, javax.wireless.messaging.sms.receive, javax.wireless.messaging.sms.send
I have even tried to start the MIDLET dynamically by calling
but that too doesnt work?
So what am I doing wrong in starting the MIDLET automatically using push registry?