Below is my code implementation :
java.net.UnknownHostException virtualhostname at
java.net.InetAddress.lookUpHostByName(InetAddress.java:506)
It works fine on my PC, but when I run it on an emulator I’m not able to check the HTTP status. I get this error “java.net.UnknownHostException: Invalid hostname for server: local”
Can anyone tell me how to resolve this error?