How to add manifest permission to an application?

后端 未结 9 1309
甜味超标
甜味超标 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:32

    When using eclipse, Follow these steps

    1) Double click on the manifest to show it on the editor
    2) Click on the permissions tab below the manifest editor
    3) Click on Add button
    4) on the dialog that appears Click uses permission. (Ussually the last item on the list)
    5) Notice the view that appears on the rigth side Select "android.permission.INTERNET"
    6) Then a series of Ok and finally save.

    Hope this helps

提交回复
热议问题