I tried simple HTTP Midlet and it works correctly.
I also did some tests with my N8 and my MIDlet works correctly in it. When I create network connection from another midlet my pushregistery midlet is started.
Could there be only some ports that work on S40 devices? (I did some test but any of random port from range 5 - 70000 didn't work)
Now I have also following permissions in my JAD-file:
Here's my code:
Any ideas ? =)
String dport = "datagram://:5";
PushRegistry.registerConnection(dport, myName, "*");
Alert alert = new Alert("REG OK", myName+":"+dport, null, AlertType.WARNING);
} catch (Exception ioe)
Alert alert = new Alert("Error", ioe.toString(), null, AlertType.WARNING);