// create URL parameter for JNI call
create URL parameter for JNI call
create URL parameter for JNI call
fn create_url_param<'a>(env: &JNIEnv<'a>, uri: &Uri) -> JValue<'a> {
    let url_str = env.new_string(&uri.to_string()).unwrap();
    let url_str = env.auto_local(*url_str);
    let url_obj = env
        .new_object(
            "java/net/URL",
            "(Ljava/lang/String;)V",
            &[JValue::Object(url_str.as_obj())],
        )
        .unwrap();
    JValue::Object(url_obj)
}
fn create_url_param < ' a > ( env : & JNIEnv < ' a > , uri : & Uri ) -> JValue < ' a > { let url_str = env . new_string ( & uri . to_string ( ) ) . unwrap ( ) ; let url_str = env . auto_local ( * url_str ) ; let url_obj = env . new_object ( " " , " " , & [ JValue :: Object ( url_str . as_obj ( ) ) ] , ) . unwrap ( ) ; JValue :: Object ( url_obj ) }
create URL parameter for JNI call
create URL parameter for JNI call
env
&JNIEnv<'a>
uri
&Uri