How to add manifest permission to an application?

后端 未结 9 1310
甜味超标
甜味超标 2020-11-22 15:46

I am trying to access HTTP link using HttpURLConnection in Android to download a file, but I am getting this warning in LogCat:

9条回答
  •  执念已碎
    2020-11-22 16:28

    Assuming you do not have permissions set from your LogCat error description, here is my contents for my AndroidManifest.xml file that has access to the internet:

    
     ...
     
     
    

    Other than that, you should be fine to download a file from the internet.

提交回复
热议问题