tek3
tek3

Reputation: 2115

Getting DNSException: Error trying to resolve?

I am trying to publish a post to my Twitter account...for this i am making a call to url:

con=(HttpConnection)Connector.open("http://twitter.com/statuses/update.json");

I am able to publish to my Twitter account from the simulator but the problem occurs on device...I am getting Getting "DNSException: Error trying to resolve.."...

I have read the posts regarding this...the say that the url may be wrong...but i am successful in publishing post from simulator...the problem is only on device...

I am using WAP 2.0 connection...and i am getting WAP2Trans as connection UID..

any help in this regard will be appreciated..

Upvotes: 1

Views: 438

Answers (1)

Richard
Richard

Reputation: 8920

You can't use WAP from the simulator, so on the simulator it would be using MDS or direct TCP depending on how you have configured and started the simulator.

Have a look at this video tutorial for information on how to establish a WAP connection.

Upvotes: 3

Related Questions