<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.android.autofill.service">

    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <!--
    Declare AutofillService implementation; only needed for a small number of apps that will
    be implementing an AutofillService. Framework parses meta-data and sets the service's
    Settings Activity based on what the meta-data resource points to.
    -->
        <service
            android:name=".MyAutofillService"
            android:label="Multi-Dataset Autofill Service"
            android:permission="android.permission.BIND_AUTOFILL_SERVICE">
            <meta-data
                android:name="android.autofill"
                android:resource="@xml/multidataset_service" />

            <intent-filter>
                <action android:name="android.service.autofill.AutofillService" />
            </intent-filter>
        </service>

        <service
            android:name=".simple.BasicService"
            android:label="Basic Autofill Service"
            android:permission="android.permission.BIND_AUTOFILL_SERVICE">
            <intent-filter>
                <action android:name="android.service.autofill.AutofillService" />
            </intent-filter>
        </service>

        <service
            android:name=".simple.DebugService"
            android:label="Debug Autofill Service"
            android:permission="android.permission.BIND_AUTOFILL_SERVICE">
            <meta-data
                android:name="android.autofill"
                android:resource="@xml/debug_service"/>
            <intent-filter>
                <action android:name="android.service.autofill.AutofillService" />
            </intent-filter>
        </service>

        <service
            android:name=".simple.MultiStepsService"
            android:label="Multiple-steps Service"
            android:permission="android.permission.BIND_AUTOFILL_SERVICE">
            android:name=".simple.HeuristicsService"
            android:label="Heuristics Autofill Service"
            android:permission="android.permission.BIND_AUTOFILL_SERVICE">
            <meta-data
                android:name="android.autofill"
                android:resource="@xml/heuristics_service"/>
            <intent-filter>
                <action android:name="android.service.autofill.AutofillService" />
            </intent-filter>
        </service>

        <activity
            android:name=".AuthActivity"
            android:taskAffinity=".AuthActivity"
            android:label="@string/authentication_name" />

        <activity
            android:name=".simple.SimpleAuthActivity"
            android:taskAffinity=".simple.SimpleAuthActivity"
            android:label="@string/authentication_name" />

        <activity
            android:name=".ManualActivity"
            android:taskAffinity=".ManualActivity"
            android:label="@string/manual_name" />

        <activity
            android:name=".ManualFieldPickerActivity"
            android:taskAffinity=".ManualActivity"
            android:label="@string/manual_field_picker_name" />

        <!-- Including launcher icon for Autofill Settings to convenience. Not necessary for a
        real service. -->
        <activity
            android:name=".settings.SettingsActivity"
            android:exported="true"
            android:label="@string/settings_name"
            android:taskAffinity=".settings.SettingsActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>
</manifest>
