@ -7,14 +7,13 @@
<application>
<service
android:name=".MusicService"
android:exported="true">
android:exported="true"
android:foregroundServiceType="mediaPlayback"
>
<!-- 让系统知道这是媒体浏览服务 -->
<intent-filter>
<action android:name="android.media.browse.MediaBrowserService" />
</intent-filter>
<!-- 让系统知道这里能处理媒体按键 -->
<action android:name="android.intent.action.MEDIA_BUTTON" />
</service>