This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Urgent! Help needed

 
liang gu
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the J2ME application working on the emulator and some features of the J2ME app working on the Palm VIIx device. However, I coudn't get a J2ME app talk to a http server over the builtin wireless connection on the actual Palm VIIx device.
Partial code is in the following:
...............
try {
String url = "http://quote.yahoo.com/d";
Connector.openDataInputStream(url);
} catch (Exception e ) {
t = new TextBox ("Error", e.toString(), 1024,0);
}
.............
When running on the actual device, I got an IllegalArgumentException at the line :
Connector.openDataInputStream(url);

I am desparate on this issue. Any help will be greatly appreciated.
Liang

------------------
 
liang gu
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solution found.
using:
String url = "inethttp://quote.yahoo.com/d";
instead of
String url = "http://quote.yahoo.com/d";
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13077
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That problem appears to be unique to the Palm VIIx with built-in wireless - how annoying - it uses a slightly different library.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic