开发者

Cannot access the internet while i debug android on device

开发者 https://www.devze.com 2023-01-18 15:49 出处:网络
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

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" />
0

精彩评论

暂无评论...
验证码 换一张
取 消