java-native-interface
android ndk using mupdf library
开发者_StackOverflowI want to make a pdf viewer program in android phone. So, I purchased the mupdf library.[详细]
2023-04-01 22:44 分类:问答FindClass cannot find custom Java class
I have a purely native app, as I use the android_native_app_glue and the entrypoint to my app is android_main(..)[详细]
2023-04-01 20:33 分类:问答What is a "hook" and how can I write one in Java? And how to communicate with kernel to know the keys pressed by the user/registering with OS
Although I searched a lot, it is still unclear to me as to what exactly a \"hook\" is. For instance, I read this post on wiki answers :[详细]
2023-04-01 20:20 分类:问答Call a static java method of another package from native code
For example, let\'s say that in Android, I need to call the static method android.os.SystemClock.elapsedRealtime(), which returns a long, from a portion of native code. In the mylib.c file, I have[详细]
2023-04-01 10:52 分类:问答Calling JAVA class member from Native C/C++ code
I\'m writing an OpenGL C/C++ application which i\'m porting to Android through Android NDK, JNI support. I\'m having difficulties executing code from JAVA callback signaled from native.[详细]
2023-04-01 00:54 分类:问答JNI - "Cannot open include file: 'jni_md.h'"
This sample program is meant to call a native method written in C. Java Code class HelloWorld { private native void print();[详细]
2023-03-31 17:04 分类:问答Running generated ARM machine code on Android gives UnsupportedOperationException with Java Bitmap objects
We ( http://www.mosync.com ) have compiled our ARM recompiler with the Android NDK which takes our internal byte code and generates ARM machine code. When executing recompiled code we see an enormous[详细]
2023-03-31 05:29 分类:问答Android Bitmap native API to create android.graphics.Bitmap instance
I\'m using native code and I have a buffer of pixels (i.e int* buffer). I want to create a android.util.Bitmap instance from the buffer with a specific width, height.[详细]
2023-03-31 02:34 分类:问答Missing msvcr100.dll error while running an executable built with MinGW
I am successfully compiling (with MinGW) and running my C++ program (which calls Java classes through JNI) consisting of multiple files on my Win7-64bit system. Compiling and running is done by 2 batc[详细]
2023-03-31 00:17 分类:问答Eclipse oddity: UnsatisfiedLinkError in JNI code
We have a C++ DLL that we call from JNI. Under Java 1.6.0_26, it runs and debugs perfectly under Eclipse. However if we switch the JRE to 1.6.0_24 it will run fine, but if we try to debug we get an U[详细]
2023-03-30 22:32 分类:问答