Sal*_*uda 6 android assistant mediabrowserservice mediabrowserservicecompat
语音命令 Play [song] on [my appName] 命令不起作用,“appName”未被谷歌助手识别。
我按照说明表格https://developer.android.com/guide/topics/media-apps/interacting-with-assistant和演示应用表格https://github.com/android/uamp
我的AndroidManifest:
<application
android:name=".XApplication"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" // app_name = appX 101.1
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="false"
android:theme="@style/AppTheme">
<activity
android:name=".ui.splash.SplashActivity"
android:exported="true"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.AppFullScreenTheme"
android:windowSoftInputMode="adjustPan|stateHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
...
...
<service
android:name="com.music.android.xx.media.MusicService"
android:enabled="true"
android:exported="true"
tools:ignore="ExportedService">
<intent-filter>
<action android:name="android.media.browse.MediaBrowserService" />
</intent-filter>
</service>
<service
android:name=".service.LocationUpdatesService"
android:foregroundServiceType="location" />
<receiver android:name=".service.StopServiceReceiver" />
<receiver android:name=".service.PlayRadioReceiver" />
<service
android:name=".service.MyFirebaseService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
Run Code Online (Sandbox Code Playgroud)
我在弄清楚我做错了什么或错过了什么时遇到了问题。任何帮助将不胜感激..
PS:我的应用程序在商店里已经有 4 天了,我的应用程序名称中有像“appX 101.1”这样的数字(我担心这可能是一个问题)
| 归档时间: |
|
| 查看次数: |
641 次 |
| 最近记录: |