开发工具允许我没有设置 [英] Development tools permission I did not set

查看:194
本文介绍了开发工具允许我没有设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建Android应用程序,当我出口(和符号),它总是增加了一个开发工具(测试访问受保护的存储我从来没有设置权限。 这是我的清单:

I've been creating an android app and when I export (and sign) it, it always adds a "Development tools (test access to protected storage" permission that I had never set. This is my manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.tdr"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="15" />

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme">
        <activity
            android:name=".MainActivity"
            android:label="@string/title_activity_main" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="Escriure"
            android:enabled="true" >
        </activity>
        <activity android:enabled="true" android:name="Llegir"></activity>
    </application>

</manifest>

我需要写和从外部存储读取文件,但不能使用(¿?)开发工具。问题出在哪里?谢谢!

I do need to write and read files from the external storage, but not to use (¿?) development tools. Where is the problem? Thanks!

推荐答案

Android已经补充说,需要对果冻豆添加一个新的权限。请仔细阅读本<一个href="http://www.androidguys.com/2012/06/29/jelly-bean-has-new-permission-option-to-read-external-storage/"相对=nofollow>文章,下面复制为快速参考:

Android has added a new permission that needs to be added for Jelly Bean. Please read this article, which is copied below for quick reference:

现在,在果冻豆,我们得到了读取外部存储   允许。据谷歌:

Now, in Jelly Bean, we’re getting the "read external storage" permission. According to Google:

READ_EXTERNAL_STORAG​​E

提供保护的读访问外部   存储。在安卓4.1默认情况下,所有的应用程序还是已经阅读   访问。这将在未来的版本,要求改变   应用程序明确要求使用该权限读取权限。如果   您的应用程序已经请求写访问,它会自动   读权限为好。有一个新的开发选项开启   读访问限制,为开发者测试其应用程序   对Android将如何表现的未来。所以,当你跳进   您的果冻豆设备上的发展选择,请不要感到惊讶   看到这一新选项。我们将看不到许可的Andr​​oid 4.1.0,   但最有可能在4.1.1,它的目的是让你的设备   更安全。

Provides protected read access to external storage. In Android 4.1 by default all applications still have read access. This will be changed in a future release to require that applications explicitly request read access using this permission. If your application already requests write access, it will automatically get read access as well. There is a new developer option to turn on read access restriction, for developers to test their applications against how Android will behave in the future. So, when you hop into the development options on your Jelly Bean device, don’t be surprised to see this new option. We won’t see the permission in Android 4.1.0, but most likely in 4.1.1, and its intention is to keep your device more secure.

这篇关于开发工具允许我没有设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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