Registry / other / ndk-glue

ndk-glue

JSON →
library0.7.0rscratesunverified

Startup code for Android binaries, providing initialization and event handling for native Android apps.

# Cargo.toml [dependencies] ndk-glue = "0.7.0"
INSTALL
IMPORT
SIG · NDK-GLUE
N
ndk-glue
otherrustv0.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

native_activity
use ndk_glue::native_activity;

Retrieves the Android native activity object for use in native code.

use ndk_glue::native_activity; fn main() { let activity = native_activity(); println!("Native activity: {:?}", activity); }
Debug
Known issues
gotchaOnly works on Android targets; will not compile on other platforms.
fix
Ensure your project targets Android (e.g., aarch64-linux-android) and uses the appropriate build setup.
affects: >=0.5.0
Upgrade
Version history
0.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
ndk-glue — cargo add ndk-glue · libregistry