• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Why the wireless connection is so slow in J2ME

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I've never won anything before. Not even a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic