hello
I'm developing an J2ME application which needs to do a Datagram Connection.
Up to now, I've tried to make it with the Nokia 7650 and I get the
following exception when I run the app in the REAL DEVICE:
java.lang.ClassNotFoundException:
com.symbian.midp.io.protocol.datagram.Protocol
Which Mobile supports DatagramConnection in J2ME?
Someone told me in the Nokia forum that maybe the following phone models support DatagramConnection:
Sanyo 8100 and 5300, Samsung A500 and N400, LG LX5550, or Motorola V300.
Is this correct?
As I have developed for Nokia 7650, I have used the Series 60 libraries and I would like to migrate to a Series 60 mobile that supports DatagramConnection.
Which previous mobiles are Series 60?
Thanks in advance
The source code is the following:
try {
// Create a new datagram socket.
DatagramConnection dc =
(DatagramConnection)Connector.open("datagram://:9000"😉;
System.out.println("SYSTEM, datagram server listener:
datagram://:9000" );
System.out.println("SYSTEM, datagram size:"+MAX_DATAGRAM_SIZE);
Datagram datagram =
dc.newDatagram(MAX_DATAGRAM_SIZE);
System.out.println("SYSTEM, listening!"😉;
dc.receive(datagram);
System.out.println("SYSTEM, packet revceived!"😉;
} catch (Exception ex)
{
System.out.println("SYSTEM, exception raised:"😉;
ex.printStackTrace();
}