开发者

Android HttpPost error java.net UnknownHostException

开发者 https://www.devze.com 2023-02-12 01:19 出处:网络
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 theset in the androidmanifet.xml ri

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

精彩评论

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