I have also noted the change in behaviour of the red key on the Nokia N70 from earlier s60 devices.
On the N70 red button quits the app. Other series 60 devices hide the app. On Series 40...
Type: Posts; User: springwood64; Keyword(s):
I have also noted the change in behaviour of the red key on the Nokia N70 from earlier s60 devices.
On the N70 red button quits the app. Other series 60 devices hide the app. On Series 40...
I have experienced an intermittent MIDlet crash that seems very hard to understand.
I have tested the code below on a Nokia 6630. Repeat runs of entering three or four character strings in the...
Thanks for your response Daniel.
We have found a recent 6230i that does not experience the problem, so it appears that some firmware versions have fixed the problem. Is there a definitive list of...
A separate test reproduced the problem simply by writing to a stream on a socket. No read required.
I am interested in hearing from other members regarding the way Nokia manage problems in devices/firmware with known work arounds.
I have encountered a number of firmware/device bugs that turn...
I'm afraid that you cannot rely on available(). Instead you could read one byte at a time - each read will block until a single byte is available:
boolean dataFound = false;
while(!dataFound)...
Further to this, I created a version of the midlet that opens two connections to the same address and port.
One connection writes to its socket on one thread, and the other connection reads from...
I'm on a roll today: To trigger the reboot with this test app it looks as though the user has to hit the red key when the data is being written (I have my phone next to the PC speakers so I can hear...
I have opened a thread on this here:
http://discussion.forum.nokia.com/forum/showthread.php?t=71522
In fact it's even simpler than that. I can reproduce it with opening the socket and writing to it on one thread while reading on another.
In my sample code you can ditch the output thread and...
I have successfully narrowed this down. It is occurs when writing and reading a socket on different threads (oh yes!)
I have simple midlet that opens a connection, launches a read on one thread...
I suggest that once you have read the header, you precede your data with two bytes (for example) to indicate the length of the following data block. If you do this you can read the size in the first...
Well I found the answer eventually.
It appears that many s60 and s40 devices can send data packets of up to 4096 bytes but only receive 512 bytes.
Pete
I experience a problem on series 40 devices. My midlet opens long lived SocketConnections. I open a DataInputStream to read data and an OutputStream to write data.
Virtually all the time the...
Nokia have implemented 'read' as 'readfully'. The method call will terminate when it has read enough bytes to fill your buffer.
If you are reading HTTP then you will have to read it one byte at a...
I get the same problem on datagrams. Did you get a resolution to this problem?
I have seen a few posts regarding this question and no answers, so I'll try again. :-)
I am trying to receive UDP datagrams. On the 6600 I can only receive 512 bytes via a J2ME DatagramConnection...