What permission do I need to access Internet from an Android application?

前端 未结 13 1678
名媛妹妹
名媛妹妹 2020-11-22 03:50

I get the following Exception running my app:

java.net.SocketException: Permission denied (maybe missing INTERNET permission)

How do I solv

相关标签:
13条回答
  • 2020-11-22 04:39

    Google removed the need to ask permission for the internet for the latest version. Still, to request for internet permission in your code you must add these to your AndroidManifest.xml file.

    <uses-permission android:name="android.permission.INTERNET"/>
    
    0 讨论(0)
提交回复
热议问题