Source

android-dream-tutorial / AndroidManifest.xml

Full commit
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.hascode.android.dream_app"
    android:versionCode="1"
    android:versionName="1.0" >

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

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <service
            android:name="com.hascode.android.dream_app.SampleDream"
            android:exported="true"
            android:icon="@drawable/ic_launcher"
            android:label="@string/custom_dream_label" >
            <intent-filter>
                <action android:name="android.service.dreams.DreamService" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>

            <meta-data
                android:name="android.service.dream"
                android:resource="@xml/hascode_dream" />
        </service>
        <activity android:name="CustomDreamSettingsActivity"></activity>
    </application>

</manifest>