80,351
社区成员
发帖
与我相关
我的任务
分享
<?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>