Forums Register Login

P900 and ServerSocketConnection

+Pie Number of slices to send: Send
I have no problems using

ServerSocketConnection ssc = (ServerSocketConnection) Connector.open(url);

in the emulator which comes with WTK2.2, but when I run it on the mobile phone (SonyEricsson P900) I get a SecurityException:

Permission = javax.microedition.io.connector.serversocket

exception.

I have used the J2ME Wireless Toolkit to create MIDlet permission for javax.microedition.io.Connector.serversocket but then I get the message that the Java-server won't allow installation of the application when I try to install it on the mobile phone. Does this mean that I can't use sockets on my phone or can I do it in some other way?

Thanks in advance,
Joachim
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 934 times.
Similar Threads
ServerSocketConnection: what's the address that others can connect?
Java2ME ServerSocketConnection: ConnectionNotFoundException
Push Message/ Notification to mobile device
Cannot create socket using ServerSocketConnection on AT&T Tilt phone
Connecting two mobiles through socket connection
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 00:14:27.