Cannot access the internet while i debug android on device
I'm trying to develop an android application 开发者_运维技巧that uses network connection. The server is up and running, but when i am trying to access it from the device that runs the android app (in debug mode-using eclipse) it outputs a message that 'cannot find the server' after a UnknownHostException occurs! I have tested the server with a java application and it works fine! What is the problem then with the device?
check your Mainfest.xml file for this line...
<uses-permission android:name="android.permission.INTERNET" />
精彩评论