Xml文件  |  50行  |  1.54 KB

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="foo.bar.printservice" >

    <uses-sdk android:minSdkVersion="19" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:allowBackup="false" >
        <service
            android:name=".MyPrintService"
            android:permission="android.permission.BIND_PRINT_SERVICE">
          <intent-filter>
              <action android:name="android.printservice.PrintService" />
          </intent-filter>
          <meta-data
              android:name="android.printservice"
              android:resource="@xml/printservice">
          </meta-data>
        </service>
        <activity
            android:name=".SettingsActivity"
            android:label="@string/settings_activity_label"
            android:exported="true">
        </activity>
       <activity
            android:name=".InfoActivity"
            android:exported="true">
        </activity>
        <activity
            android:name=".AddPrintersActivity"
            android:label="@string/add_pritners_activity_label"
            android:exported="true">
        </activity>

        <activity
            android:name=".MyDialogActivity"
            android:exported="false">
        </activity>

        <activity
            android:name=".CustomPrintOptionsActivity"
            android:exported="true"
            android:permission="android.permission.START_PRINT_SERVICE_CONFIG_ACTIVITY">
        </activity>

    </application>

</manifest>