How to add manifest permission to an application?

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

    You have to use both Network and Access Network State in manifest file while you are trying load or access to the internet through android emulator.

    
    
    

    If you are giving only .INTERNET permission, it won't access to the internet.

提交回复
热议问题