android – 开发工具许可我没有设置

我一直在创建一个 Android应用程序,当我导出(和签名)它,它总是添加一个“开发工具(测试访问受保护的存储”权限,我从来没有设置.
这是我的清单:
<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>

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

解决方法

Android已经添加了一个需要为Jelly Bean添加的新权限.请阅读下面的 article,以便快速参考:

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

READ_EXTERNAL_STORAGE

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.

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...