Xml文件  |  37行  |  1.6 KB

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.android.tests.appwidgethost">
    <uses-permission android:name="android.permission.VIBRATE" />

    <application>
        <activity android:name="AppWidgetHostActivity" android:label="_AppWidgetHost">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="TestAppWidgetConfigure" android:label="Configure TestAppWidgetProvider">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <!-- BEGIN_INCLUDE(AppWidgetProvider) -->
        <receiver android:name="TestAppWidgetProvider"
                    android:label="@string/oh_hai"
                    android:icon="@drawable/oh_hai_icon"
                    >
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
            </intent-filter>
            <meta-data android:name="android.appwidget.provider"
                        android:resource="@xml/appwidget_info"
                        />
        </receiver>
        <!-- END_INCLUDE(AppWidgetProvider) -->
        
    </application>
</manifest>