这是indexloc提供的服务,不要输入任何密码
Skip to content

Android Auto MediaLibraryService: Pagination Not Respected in onGetChildren #2617

@anshuhexabrain

Description

@anshuhexabrain

Hi team,

I'm working with MediaLibraryService in a Media3-based Android Auto app. While the documentation and method signature of onGetChildren() clearly support pagination via page and pageSize, I've found that Android Auto does not actually make paginated requests.

🔍 What I’ve Verified:
The official method signature:

onGetChildren(session, browser, parentId, page, pageSize, params)
clearly defines support for pagination (page starting from 0, pageSize > 0).
↳ See attached screenshot from source code 📎

However, as confirmed by the community:
👉 #189
Android Auto always sends page = 0 and pageSize = Integer.MAX_VALUE, requesting the full list in one go.

❓My Question:
Is this behavior intentional due to Android Auto’s design (e.g., driver safety restrictions), or is it a limitation in the current implementation?

If it’s by design, it would be helpful if this was officially documented in the Media3 or Android Auto developer guide.

https://stackoverflow.com/a/74107929

Could you please confirm:

Whether Android Auto supports pagination at all?

If not, should developers manually limit results or use “load more” folders?

Can this be clarified in the official documentation?

Thanks in advance!

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions