Replies: 2 comments
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Currently one of the difficulties with writing winit applications that need to run on Android is that it's the only platform that requires you to hook into The backend will actually panic if you try to access the native_window while the application is paused which may seem brutal but the OS actually destroys the underlying native window and creates a new one when the app resumes which needs to be handled by applications at a higher level. This shouldn't necessarily be a big problem to handle but as it is currently then most winit integrations are following some common patterns that tend to just assume that a window can be created at the same time as an event loop and all graphics state can also be immediately initialized, and this will basically lead to a panic on Android. I've recently been experimenting with an alternative Android glue layer (https://github.com/rib/agdk-rust/tree/main/game-activity) and updated winit backend (https://github.com/rib/winit/tree/agdk-game-activity) where I've then also been making a few test applications that demonstrate running on both Android and desktop here: https://github.com/rib/agdk-rust/tree/main/examples. This stuff is still work-in-progress though. Hopefully though it's possible to iterate on some of the integration layers and on winit itself to make it easier to write applications that Just Work across mobile/Android and desktop. E.g. I sent this initial PR for egui today to try and improve Android support there: emilk/egui#1634 and maybe similar changes can be made for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys,
So I am wondering I am thinking of using
conrodGUI library, however I don't think it supports Android.Is it possible to some how use
winitto make it work on Android?If this is the case, say my GUI application worked successfully on Linux, would it work on
winitor am I expecting to have breakages?Also I wanted to know do I have to keep fiddling around with
winitevery time I make a change with myconrodapplication?Beta Was this translation helpful? Give feedback.
All reactions