Accessing all Android API's in a Rust Library

I want to use all the Android SDK API's in a Rust library e.g - UsbManager, UsbDevice, All Storage related APIs, BroadcastReceivers, Intents etc. and perform some Android specific operations in app.

For instance, I want to have a code in Rust library, which tells me when there is a USB_DEVICE_ATTACHED event occurs in an Android Device. Is it possible in Rust ?

You probably want NDK — Rust API for Unix // Lib.rs, but check out the rest of #android // Lib.rs

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.