授予的Android应用程序的android.permission.INTERNET对允许在调试设备上 [英] Granting Android application the android.permission.INTERNET permission while debugging on device
问题描述
我是很新的Android开发,并不能找到这个问题的答案。我指定我需要在我的清单文件中的 android.permission.INTERNET对
许可,但是当我尝试运行在我的手机应用程序它给了我一个 java.lang.SecurityException异常:权限被拒绝:启动意图
错误。我在想什么?
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?
推荐答案
这个问题是我已经把android.permission.INTERNET对应用程序中的属性,而不是指定的权限选项卡(使用Eclipse),我的应用程序使用许可盒的权限。在清单中正确的路线是这样的:
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.
这篇关于授予的Android应用程序的android.permission.INTERNET对允许在调试设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!