I am trying to connect to the Internet to access my server from my android application but it doesn't seem to be working. I looked online and found that I had to add
<uses-permission android:name="android.permission.INTERNET" />
right before </manifest>
. But when I am doing so, the compiler is showing a warning:
<uses-permission> tag appears after <application> tag AndroidManifest.xml
Not sure if this warning is causing my code not to work. I tried placing the <user-permission>
before the <application>
but it still was showing the same warning. What does it imply?
Note: Both the Internet and ACCESS_NETWORK_STATE permissions are normal permissions, which means they're granted at install time and don't need to be requested at runtime.
Network communication — full network access. This permission means exactly what it says. An app wants to be able to send requests and get a response through the network (Wi-Fi or your phone's data connection). Besides apps that use the internet for something obvious, apps with ads in them need this one.
I've got it placed between uses-sdk
and application
, works for me.
Try to clean your project perhaps.
<uses-permission android:name="android.permission.INTERNET" />
Should go after the uses-sdk
and the application
elements, as far as I know.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With