al_android_get_jni_env - Online Linux Manual PageSection : 3
Updated :
Source : Allegro reference manual
Note :
NAMEal_android_get_jni_env − Allegro 5 API
SYNOPSIS
#include <allegro5/allegro_android.h>
JNIEnv *al_android_get_jni_env(void)
DESCRIPTIONReturns the Android JNI environment used by Allegro to call into Java. As a convenience this function provides it to the user so there is no need to obtain it yourself. For example if you have a Java method "void send(String message)" in your activity class, you could call it like this from C code:
JNIEnv * env = al_android_get_jni_env();
jclass class_id = (* env)−>GetObjectClass(env, al_android_get_activity());
jmethodID method_id = (* env)−>GetMethodID(env, class_id, "send",
"(Ljava/lang/String;)V");
jstring jdata = (* env)−>NewStringUTF(env, "Hello Java!");
(* env)−>CallVoidMethod(env, al_android_get_activity(), method_id, jdata);
(* env)−>DeleteLocalRef(env, jdata);
SINCE5.2.2 [Unstable API]: This API is new and subject to refinement. 0
Johanes Gumabo
Data Size : 5,058 byte
man-al_android_get_jni_env.3Build : 2024-12-29, 07:25 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 258,995
Visitor ID : :
Visitor IP : 18.190.176.94 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.