Automatic JavaVM and Context detection using Rust on Android

&#xA;When you’re running Rust code in the context of an Android app, if you want to work with Android-specific functionality over JNI you tend to need three things:&#xA; &#xA;&#xA; &#xA; A reference to the running Java virtual machine.&#xA; A reference to a suitable Context , often the ApplicationContext .&#xA; Some helper code on the Java side to provide APIs with required callbacks, and so…