下面这段xml配置,如何用代码实现?<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.test"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:label="@string/app_name" android:icon="@drawable/icon">
        <activity android:name="ACTIVITY_ENTRY_NAME" android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        
        //下面这段配置,如何用代码实现?
        <service android:name=".service.MyService">
            <intent-filter>
                <action android:name="my.intent.action.TEST"/>
            </intent-filter>
        </service>
    </application>
</manifest>