当我使用代理时,我有 UnknownHostExeption。我的应用程序在没有代理或某些代理(不是所有人)的网络中运行良好。我知道我需要为设备设置网络代理设置:wify 设置 - 高级 - wifi 代理模拟器:无线网络 - 移动网络 - 接入点 - telkia - 代理|端口。我想知道我必须要求管理员解锁哪些基本选项才能实现稳定的网络通信。
07-18 08:51:26.780: W/System.err(302): java.net.UnknownHostException: mirkvartir.ua
07-18 08:51:26.780: W/System.err(302): at java.net.InetAddress.lookupHostByName(InetAddress.java:513)
07-18 08:51:26.780: W/System.err(302): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:278)
07-18 08:51:26.780: W/System.err(302): at java.net.InetAddress.getAllByName(InetAddress.java:242)
07-18 08:51:26.780: W/System.err(302): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
07-18 08:51:26.780: W/System.err(302): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
07-18 08:51:26.780: W/System.err(302): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
07-18 08:51:26.780: W/System.err(302): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
07-18 08:51:26.780: W/System.err(302): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
07-18 08:51:26.780: W/System.err(302): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
07-18 08:51:26.780: W/System.err(302): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
07-18 08:51:26.780: W/System.err(302): at ua.mirkvartir.android.frontend.adapter.JSONParser.getJSONFromUrl(JSONParser.java:98)
07-18 08:51:26.780: W/System.err(302): at ua.mirkvartir.android.frontend.adapter.UserFunctions.loginUser(UserFunctions.java:76)
07-18 08:51:26.787: W/System.err(302): at ua.mirkvartir.android.frontend.LoginActivity$Login.doInBackground(LoginActivity.java:185)
07-18 08:51:26.787: W/System.err(302): at ua.mirkvartir.android.frontend.LoginActivity$Login.doInBackground(LoginActivity.java:1)
07-18 08:51:26.787: W/System.err(302): at android.os.AsyncTask$2.call(AsyncTask.java:185)
07-18 08:51:26.787: W/System.err(302): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
07-18 08:51:26.787: W/System.err(302): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
07-18 08:51:26.787: W/System.err(302): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
07-18 08:51:26.787: W/System.err(302): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
07-18 08:51:26.787: W/System.err(302): at java.lang.Thread.run(Thread.java:1096)