UnknownHostException in android

一世执手 提交于 2019-12-23 12:17:28

问题


When i run my application for sometime, suddenly the network is getting disconnected and i am getting the unknownhostexception in my application. In that case if i check the browser, the same exception occurs.I don't know why internet is getting disconnected suddenly. It works fine only if i re start the emulator again. If any one knows and provides the solution, it will be very much helpful for everyone.


回答1:


See the below link: http://hubpages.com/hub/Tips-to-solve-the-UnknownHostException-on-Android




回答2:


Delete the old emulator and create a new one. This will help



来源:https://stackoverflow.com/questions/5310634/unknownhostexception-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!