开发者

Getting Exception while Connecting to Internet in android

开发者 https://www.devze.com 2023-01-16 12:21 出处:网络
I am use OpenHttpConnection(URL) method to connect internet in my android application. But getting \"java.io.IOException:Error Conneting\".How i can avoid this. Permissi开发者_运维技巧ons in android m

I am use OpenHttpConnection(URL) method to connect internet in my android application. But getting "java.io.IOException:Error Conneting".How i can avoid this. Permissi开发者_运维技巧ons in android manifest had given. Please help me . Thank you.


Step #1: Make certain your INTERNET permission is in the correct place.

Step #2: Make certain your device or emulator has Internet access. For example, if you are using the emulator, and you see that you have zero bars of signal strength in the status bar icon, your emulator does not have Internet access. That will happen if the emulator was unable to detect Internet access when you started up the emulator.

Step #3: Make certain that whatever you are trying to connect to is actually up and running.

0

精彩评论

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

关注公众号