androidx / androidx/media

Android Auto callback for opening browsable media items

Open
#2,550 1 comment 0 reactions 1 assignee View on GitHub

@marcbaechinger is already working on this.

Since Jun 20, 2025.

question
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Hi there. I was wondering if there's a way to know when a browsable media item has been opened (tapped) but nothing has been played yet? For example, maybe an override in MediaLibrarySession.Callback?. Specifically we want to track analytics whenever these are opened. For example for the top menu items if we knew which were tapped the most often then we could re-order them for safety.

Methods like onGetChildren get called for each of the browsable media items in the top menu all at once, even before the tab has been opened yet, and doesn't get invoked again. Is there another method (or an entirely different mechanism) to be notified each time a browsable item is opened? Thanks in advance!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.