rust-windowing / rust-windowing/winit

Replace `android-activity` with `android-view`, or use both what can be enabled by features.

Open
#4,231 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

D - hard DS - android S - api S - enhancement
Dominant language
Rust
Stars
6.2k
Forks
1.3k
Avg merge
2d 19h
Merged PRs (30d)
9

Description

Description

Android activity has some caveats, and one biggest is input support. Input support is dead! Yes, starting from android 15 we have new api, but what about old androids? Currently, android 15 have only 4% of users. Instead, we can try use old java api what works on all androids.
And cool, what we already crate for this!
Features of android-view:

  • No C++ code.
  • Meant to be usable for both pure-Rust Android applications and embedding Rust widgets in existing applications.
  • Event handlers and other view callbacks run directly on the UI thread; there is no sending events to a separate Rust event loop thread.
  • This crate intends to stick as close as possible to the Android framework. This will be especially important for text input support.

Its still WIP, but its next step for android support. You can check it now.

Relevant platforms

Android

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.

Research direction

Start by reviewing winit's existing Android activity integration and the android-view project linked in the issue. The issue needs a maintainer decision on replacement versus feature-based coexistence before implementation can begin; done would require an agreed scope and validated Android input support across the supported versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, rust
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.