Is it possible to call a JNI c++ method (which is normally only used from Java) from c++ Lets say there is an Android library which uses JNI methods and I want to use these methods directly from my c++ code instead of creating a Java layer. Is this possible? I can't modify the JNI method, I don't know what happens in the JNI method so I can't use the public c++ methods directly and I dont want to pass data up do java just to the pass it down again through the jni interface
Calling JNI c++ methods directly from C++ possible?
1k Views Asked by Simon At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in ANDROID-NDK
- Debug native code in Android Studio
- dlopen failed: cannot locate symbol "cblas_sdsdot" referenced by "libgsl.so"
- GSL: nm outputs "undefined Symbol (U)"
- Eclipse not recognizing CygWin gcc
- Android APK filepath layout for NDK binary executables how-to
- Android : Loading pre-built library - Circular dependency dropped
- Android NDK code (jni interface)
- Android NDK - multlib support using gradle
- Android Crashlytics ndk; values of NdkOut and NdkLibsOut in build.gradle
- How to update Android NDK in place?
- Android NDK / Exceptions?
- Android NDK - Including prebuilt static libraries gives undefined reference errors
- Receiving sensor events in worker thread (Android native)
- ndk-build outputs ‘error adding symbols. File in wrong format’
- How to update Android jni code changings
Related Questions in JAVA-NATIVE-INTERFACE
- Generating scip.jar file (mac)
- NewStringUTF() with threads
- How can I assign the NULL to a float/double variable?
- Can I cast native primitive type into a JNI primitive type without worrying about endianness?
- Android NDK code (jni interface)
- Exception Access Violation
- SCIP JNI (Java Native Interface) installation on Ubuntu 14.04:
- How to manipulate CameraPreview bytearray through the JNI? (OpenCV)
- Hide GPS icon while GPS is on in android?
- How to send (from Native code) a android.content.Context parameter to a Java fct (via JNI)
- How to pass java object reference from java side to c++ side?
- How to update Android jni code changings
- Jni : Call a java method within C++ code, errors
- Android NDK: Multiple definition of .o and .c files
- Must I DeleteLocalRef an object I have called NewGlobalRef on?
Related Questions in JNIWRAPPER
- Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing in AOSP Build
- Build JNI Wrapper for C-Library with CMake
- Does `jobject` always have the same address if it represents the same Java instance?
- JNI in C++ to read file to jbyteArray
- dyld: lazy symbol binding failed: Symbol not found: Expected in: flat namespace
- Why does IE 11 crash when I open a page with applets in 64 bit jvm but works fine with 32 bit jvm?
- SWIGTYPE pointer value assignment is slow
- Calling JNI c++ methods directly from C++ possible?
- How to implement mapping from type to object method call using C++ templates?
- Calling Go Function from java using JNI: Library Not loaded
- Java JNI slows down unexpected
- How to convert C++ Array<float,size> to jfloatArray in JNIWrapper?
- How to map Java ArrayList<float[]> to C++ Vector<array<float,size>> in JniWrapper?
- Mapping pointer to UInt64
- Can i control JNI native method invocation name in Java?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, It's possible. You can can create APK without the java layer.
If want to go with reference example.Try to make with simple example of opengl es.
Android Native Sample
ie. You can have direct access for the Android layer.