• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why the wireless connection is so slow in J2ME

 
liang gu
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have implemented some applications in J2ME on the Palm VIIx and Hand Spring Visor devices. I noticed that in J2ME application, the wireless connection speed is significatly slower than other non-J2ME applications on the devices(for example, the ABC News, Amazon application shipped with the device). For 600 charaters, the Palm VIIx device can take up to 1 min. to finish the download, while other application on the same device only takes a few seconds to finish the download. Does anybody experieced the same problem? Do we have any solution to it? Thanks!
Liang
 
Liam Quinn
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're reading one character at a time with InputStream.read(), you should change to reading 256 characters or so at a time with InputStream.read(byte[],int,int). Reading one character at a time is slow.
[ August 04, 2002: Message edited by: Liam Quinn ]
 
liang gu
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I was already reading data into a 2000 bytes array, otherwise it will take forever. So my question is: even with reading data into a long bytes array, the connection speed is still significately(and painfully) slow.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic