A simple socket app in Android needs some special permissions to connect through the internet?

前端 未结 2 1364
余生分开走
余生分开走 2021-01-06 08:23

A simple socket app in Android needs some special permissions to connect through the internet?

Whats wrong with my code? It always get Exceptions when it tryes to co

相关标签:
2条回答
  • 2021-01-06 09:02

    Any internet access from your application requires the internet acces permisison.

    Android Permissions

    The permission you want is called "INTERNET"

    0 讨论(0)
  • 2021-01-06 09:17

    Do you have

    <uses-permission android:name="android.permission.INTERNET" /> 
    

    in your manifest? Outside the application tags.

    0 讨论(0)
提交回复
热议问题