开发者

Android HttpPost error java.net UnknownHostException

I have a java application trying to post to a php file on an IIS server and when I execute the post I get the java.net UnknownHostException. I hav开发者_如何学编程e the set in the androidmanifet.xml right above the application element. Can somebody please help?


If your server is on a subnet, make sure you're including the full hostname in your HttpPost, e.g. barney.awesome.domain.com and not simply barney


I figured it out. Turns out the emulator that was started through eclipse would not connect to the internet. Had to manually start it up. Does anyone know why the emulator through eclipse does not connect to the internet?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜