Skip to content

feat: Add Android support#72

Merged
mwcampbell merged 2 commits intomainfrom
android
Feb 25, 2026
Merged

feat: Add Android support#72
mwcampbell merged 2 commits intomainfrom
android

Conversation

@DataTriny
Copy link
Member

Fixes #42

Exposes the Android adapters when targetting Android. Can be built with Meson and CMake, optionally with the embedded-dex feature enabled.

Updates our SDL2 example to support the platform by subclassing the SDL activity. JNI specific code lives in its own module. The main module does not directly update the adapter but rather ask the Java side to do it.

Pre-built libraries are added to our releases for the most common platforms (ARM V8 and x64 for simulators). The CI ensures the Java code in the example is properly formatted.

@DataTriny DataTriny mentioned this pull request Feb 22, 2026
@mwcampbell
Copy link
Contributor

Just one minor thing I noticed, in the SDL example: As with onHover, the JNI implementation of performAction should only return true if the adapter returned a QueuedEvents.

Copy link
Contributor

@mwcampbell mwcampbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just need to rebase and update the accesskit_android version, then this looks ready to merge.

@mwcampbell mwcampbell merged commit c42e2d9 into main Feb 25, 2026
20 checks passed
@mwcampbell mwcampbell deleted the android branch February 25, 2026 22:29
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.

Expose Android bindings

2 participants