Replies: 11 comments 6 replies
-
Im afraid this kind of things is outside of the scope of Slint. You will have to find another rust library that does that, or reach into Java. |
Beta Was this translation helpful? Give feedback.
-
Okay thanks. I'm trying to find in the pipeline where this is done. This looks like it |
Beta Was this translation helpful? Give feedback.
-
I've been digging around for a few days trying to figure out how the android system works. And have it sused out. Slint is using android-activity crate and have modified it to work for your purposes. Android activity examples here have the manifest file Slint doesn't have this manifest, but I need to use one to customise the android build, and permissions. Is there a way I can essentially merge these two and put them in my project? Slints android backend with extra manifest and code snippet. |
Beta Was this translation helpful? Give feedback.
-
Some samples here of adding Bluetooth permission to the manifest and java. I'm wondering if it's possible to add a way to insert the permission code via rust, which is applied in the java? And a way to supply an android XML to slint? |
Beta Was this translation helpful? Give feedback.
-
@Gibbz any news ? |
Beta Was this translation helpful? Give feedback.
-
I gave up with it. |
Beta Was this translation helpful? Give feedback.
-
@Gibbz sad to hear. Seems you are the one person who actually tried to use rust on android and get permissions. I want draw fft spectrum from microphone and all i need is to request permission. I've done it with your snippet, call Perhaps, I gave up too. Sorry for disturbing. Good luck. |
Beta Was this translation helpful? Give feedback.
-
it works
|
Beta Was this translation helpful? Give feedback.
-
Great, did you need to modify the XML? |
Beta Was this translation helpful? Give feedback.
-
That's it! I never could find an example of the manifest yml for to work with either! |
Beta Was this translation helpful? Give feedback.
-
Leaving a link here: rust-mobile/android-activity#174, waiting for an answer from I found a Flutter library for reference: https://github.com/baseflow/flutter-permission-handler. However, it introduces |
Beta Was this translation helpful? Give feedback.
-
I've got a basic app up and running in android with slint and rust. Is there any examples of setting up permissions in the same way android apps do? I'd like to add some Bluetooth support to my app....
Beta Was this translation helpful? Give feedback.
All reactions