Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Connectivity issue on i680

 
Swastik Dey
Rancher
Posts: 1719
8
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following code to make a http connection

HttpConnection con=(HttpConnection)Connector.open("http://mywebsite.com");

The above code works fine on all the device(as much as I have tested), however it's failing on iDEN i680 with the following exception

javax.microedition.io.ConnectionNotFoundException domain name is not valid(dns server failed to resolve domain name). However instead of dns address if I use IP address it's working fine. My question is if there is any issue with dns resolution, then how come it's working on the other devices? Do I need any explicit settings on i680?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!