Android namespace

My Android manifest has the following, I am getting an error with the following:

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

      

They say "Attribute has no Android namespace prefix" The same file worked fine before I modified it. My full manifest is below:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.test12"
    android:versionCode="1"
    android:versionName="1.0" >
    <!-- uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission-->
    <uses-permission android:name="android.permission.WAKE_LOCK"></uses-permission>
    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission> 
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE">
        <group gid="media_rw" />
    </uses-permission>

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

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.example.test12.MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".TestityTest" android:screenOrientation="portrait" />
    </application>
    <application android:name="GlobalObjects" android:label="@string/app_name" />
</manifest>

      

0


source to share


2 answers


If you check the AppManifest documentation , there is no such thing as <group gid="media_rw" />

.

I know someone is using <group gid="media_rw" />

to allow writing to SD card in Kitkat, but it is specific to Android System , not individual apps.



You can find several related discussions here: Is Google blocking apps that write to SD cards? ...

0


source


It turns out that I had to open the file in another editor to save it and then clean up and re-create the project. I have no idea why this was the case.



0


source







All Articles