Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multi Window is not working

I am currently trying to implement the Multi Window Feature to my Application.

I followed this guide.

And here is my Problem:

I added the following lines to the manifest

        <intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />

<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />

and

    <uses-library required="false" name="com.sec.android.app.multiwindow"> </uses-library>
    <meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
    <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:value="632.0dip" />
    <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:value="598.0dip" />
    <meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_W" android:value="632.0dip" />
    <meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_H" android:value="598.0dip" />

    </application>

I get this Error

 Attribute is missing the Android namespace prefix

in this line:

    <uses-library required="false" name="com.sec.android.app.multiwindow"> </uses-library>

Can anyone help me please?

Thank you.

like image 869
user1750720 Avatar asked Nov 17 '12 21:11

user1750720


1 Answers

Try changing this line

<uses-library required="false" name="com.sec.android.app.multiwindow"> </uses-library>

to this line:

<uses-library android:required="false" android:name="com.sec.android.app.multiwindow"> </uses-library>
like image 147
nhaarman Avatar answered Sep 27 '22 23:09

nhaarman