uamp
uamp copied to clipboard
UAMP play from search not working on Android Auto (DHU): "Sorry, something went wrong. Try opening the app to continue"
Phone: OnePlus 6 Android Version: 11 Android Auto Version: 7.1.614574-release
Steps to recreate:
- Install and run Android Auto Desktop Head Unit emulator as per documentation (version 2.0 rc2).
- Compile and install UAMP (last commit: 65a27cde558d6a48ec6555396df72fe1039c4e6e).
- Open UAMP on the DHU.
- Hit the Assistant button and ask "Play [track]".
- Observe how the the Assistant responds: "Ok, asking UAMP to play [track]", followed almost instantly by "Sorry, something went wrong. Try opening the app to continue".
What I did observe is that all voice commands in the table below work - with the only exception of phrases triggering the onPlayFromSearch() callback. Any ideas why?
EDIT: My issue is similar to #381 - however the fix from #405 is included in the version of the UAMP app I have installed and the problem persists. Could it be that things changed on the internal side, breaking the play from search functionality in the app?
I'm having the same issue as described.
Phone: Galaxy A70 Android Version: 11 Android Auto Version: 7.4.620934-release
Any news on this ?
For anyone having this issue, for me it working to have this as the Intent filter on a fake activity that only extends AppCompatActivity.
/**
* Due to some weird Google reasons we need to provide an activity to which we add the
* MEDIA_PLAY_FROM_SEARCH intent filter. This can be any activity and actually doesn't do anything
*/
class PlayFromSearchActivity : AppCompatActivity()
<activity android:name=".PlayFromSearchActivity"
android:exported="true">
<intent-filter>
<action
android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>