Skip to content

Another media player intents potential fix #186

Open
timusus wants to merge 1 commit intomainfrom
claude/investigate-issue-011CV2XXqaFD9mFGTpBLFP7s
Open

Another media player intents potential fix #186
timusus wants to merge 1 commit intomainfrom
claude/investigate-issue-011CV2XXqaFD9mFGTpBLFP7s

Conversation

@timusus
Copy link
Owner

@timusus timusus commented Nov 11, 2025

Fixes #106

This change adds the necessary intent filters and handling code to allow Shuttle2 to be recognized by Android as a music player application.

Changes:

  • Add MUSIC_PLAYER action to register as a music player
  • Add ACTION_VIEW intent filters for audio file types (audio/*, application/ogg, application/x-ogg, application/itunes)
  • Update MainActivity to handle ACTION_VIEW intents for audio files
  • Update PlaybackService to process ACTION_VIEW intents via media session

This allows users to:

  • Set Shuttle2 as the default music player
  • Open audio files from file managers and other apps with Shuttle2
  • Have Shuttle2 recognized by other apps that integrate with music players

Fixes #106

This change adds the necessary intent filters and handling code to allow
Shuttle2 to be recognized by Android as a music player application.

Changes:
- Add MUSIC_PLAYER action to register as a music player
- Add ACTION_VIEW intent filters for audio file types (audio/*,
  application/ogg, application/x-ogg, application/itunes)
- Update MainActivity to handle ACTION_VIEW intents for audio files
- Update PlaybackService to process ACTION_VIEW intents via media session

This allows users to:
- Set Shuttle2 as the default music player
- Open audio files from file managers and other apps with Shuttle2
- Have Shuttle2 recognized by other apps that integrate with music players
@rivaldi8
Copy link
Contributor

This allows users to:

  • Set Shuttle2 as the default music player
  • Open audio files from file managers and other apps with Shuttle2
  • Have Shuttle2 recognized by other apps that integrate with music players

I haven't found any option in my phone or the emulator to set the default music player, and I'm not sure what the third item refers to. However, I've tested opening files from a file manager and it doesn't work as it is.

There are some things missing that I needed to add for it to work properly. You can find the changes in the branch alexm-106-open-audio-files-intent (rebased to main), if you want to cherry-pick them. Or I can open a separate pull request, if you prefer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to select S2 as default music app

3 participants