Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android softkeyboard support #199

Open
1 of 5 tasks
jb55 opened this issue Mar 23, 2024 · 6 comments
Open
1 of 5 tasks

Android softkeyboard support #199

jb55 opened this issue Mar 23, 2024 · 6 comments
Assignees
Labels
android Android-specific issues posting Posting-related features

Comments

@jb55
Copy link
Contributor Author

jb55 commented Mar 27, 2024

I looked into this all yesterday. It looks like we might need to switch over to GameActivity to get this working. There is some initial work from @rib in android-activity (rust-mobile/android-activity#24) for soft keyboard + GameActivity, but it looks like we'll will still need winit/egui support. There are some demos by @lucasmerlin at https://github.com/lucasmerlin/rust-android-examples/tree/ime_support_showcase/agdk-eframe which demo this in egui.

The current build tooling we're using assumes its a NativeActivity, I have yet to get GameActivity working. It seems there are many build tools: cargo-apk (what we're using now), cargo-ndk, cargo-xbuild, cargo-mobile2. I'm not sure what to use. The GameActivity demos use cargo-ndk but it requires some gradle step which I have yet to get working.

Somewhat surprised the rust mobile ecosystem still can't present a keyboard for input, oh well, I guess banging my head against this a bit more is easier than building an entirely new android kotlin codebase from scratch.

@lucasmerlin
Copy link

I can report that I'm still using the method from the showcase in my app and I regularly update my fork of winit and egui with the keyboard changes to the newest versions.

The current versions of my fork are here:

https://github.com/lucasmerlin/egui/tree/hp_improvements_0.26

https://github.com/lucasmerlin/winit/tree/hp-fixes-0.29.x

They also contain changes unrelated to keyboard input, but maybe it will still be helpful.

@jb55
Copy link
Contributor Author

jb55 commented Mar 27, 2024

I saw those! Thank you! I will try to get these working.

@jb55 jb55 self-assigned this Mar 28, 2024
@jb55
Copy link
Contributor Author

jb55 commented Apr 8, 2024

Since this is a large task I will split it into specific deliverables for this sprint

@jb55 jb55 added the posting Posting-related features label Apr 9, 2024
@alltheseas alltheseas transferred this issue from another repository Jul 22, 2024
@alltheseas alltheseas added the android Android-specific issues label Jul 25, 2024
@alltheseas
Copy link
Contributor

@jb55 with issues transferred over from old android repo to notedeck repo, I am adding an 'android' label to every android specific issue

@alltheseas
Copy link
Contributor

@ksedgwic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Android-specific issues posting Posting-related features
Projects
Status: Backlog
Development

No branches or pull requests

3 participants