• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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 been selected to go to the moon! All thanks to this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic