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?
精彩评论