I am creating a native method in Android Studio which is registered using RegisterNatives in JNI_OnLoad when the library is loaded. The problem is tha ...
I am creating a native method in Android Studio which is registered using RegisterNatives in JNI_OnLoad when the library is loaded. The problem is tha ...
I am attempting to call a Java method which accepts a lambda as an argument. I am not in control of the Java side of the code, and am using the invoca ...
I am working on camera application. When I debug the application, it crashes and says java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoade ...
First of all, say that I'm not an expert in C++. I develop a Java program that needs a process with OpenCV through a DLL. Theoretically, all componen ...
I use JNI in my Java code to communicate with C++. The C++ code is compiled and stored in a native library that can be accessed by Java. On Windows, I ...
I've been reading the Apache Arrow docs, and I've figured out how to use it in Java and C++. But what I'd like to do is offload some work to JNI (C/C+ ...
I'm new to JNI and I want to create an ArrayList<Boolean> from the C++ side. I have the following situation: import java.util.ArrayList; publ ...
I'm struggling to access the data returned by camera_parameters->getSupportedPreviewFpsRange() with C++Builder 11. The getSupportedPreviewFpsRange ...
I want to access java method from C++ using JNI. I try this code it can't find the class file of java. I got the error Exception in thread "main" java ...
In my android application, the core logic is written in C++. Hence for multiple scenarios, there will be JNI calls happening. In one use-case, as the ...
im trying to write JNI app and want to use kotlin in it. As i understand kotlin equivalent of this: private static native void hi(); is: but th ...
I want to use the url of the files in assets or raw in C++ (JNI). However, I don't know how to obtain the url of these files, since I cann't use ...
When my java class loads, I call this jni method to set "listener" from cpp to java (I record audio using cpp and want to pass its bytes to java) : M ...
How can I create a jshortarray with 545460846912 elements Try to mimic this code and it returns 545460846912 for my file I need to make an shor ...
I am kinda stuck and lost on this problem: I want to pass a string parameter from a C++ Method (Native C), that I call via ROS to a Java method. In th ...
How can I get the general information of a JNI signature (of methods)? For example, A method's JNI signature is Lme/jni/Clazz;->demo(Ljava/lang/S ...
Here I have two activities: HomeActivity(the launcher activity) and MainActivity(load native library and call native methods): public class HomeActiv ...
I'm trying to call a JNI function from my Java code in an android app, The function is called but the parameters value in the JNI function is not the ...
I am trying to learn Android Native programming , but i cannot use the Javac -h to generate header files from java source files . javac -h "destinati ...
I want an event when mac/linux machine goes to sleep and wakeup. Can any one please suggest a solution using java which can detect machine lock and un ...