I'm very new to Android development and can't find the answer to this. I have specified that I need the android.permission.INTERNET
permission in my manifest file but when I try to run the app on my phone it gives me a java.lang.SecurityException: Permission Denial: starting Intent
error. What am I missing?
Does my app need to be signed before I can request permissions even during development?
Lets say you are downloading an application which must not use internet at all and if you don't require any permission for that, it might be secretly putting data on some server. You need to explicitly put internet permission in AndroidManifest. xml, so user of your app will be aware of it.
The above permission Allows applications to open network sockets. Where as above ACCESS_NETWORK_STATE permission Allows applications to access information about networks. Example: If you want to load a URL in a WebView , you only need android.
The problem was I had put the android.permission.INTERNET in the application attributes permission box instead of specifying in the permissions tab (using Eclipse) that my application uses the permission. The correct line in the manifest is this:
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
I'm not sure what the application attributes permission is for.
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