授予的Andr​​oid应用程序的android.permission.INTERNET对允许在调试设备上 [英] Granting Android application the android.permission.INTERNET permission while debugging on device

查看:154
本文介绍了授予的Andr​​oid应用程序的android.permission.INTERNET对允许在调试设备上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是很新的Andr​​oid开发,并不能找到这个问题的答案。我指定我需要在我的清单文件中的 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.

这篇关于授予的Andr​​oid应用程序的android.permission.INTERNET对允许在调试设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆