java-native-interface
Redirect output from JNI library
I\'m looking for a way to redirect/capture the stdout output of a native library in a simple Android app.I\'ve seen a couple posts on this but I\'m not finding the answers to my questions.[详细]
2023-04-11 11:02 分类:问答Converting a BufferedImage to HBITMAP
I need to convert a Java BufferedImage into an HBITMAP. So far I have allocated the memory needed for this operation, but I do not know what API functions I have to use to convert my BufferedImage in[详细]
2023-04-11 10:43 分类:问答JCuda error: undefined symbol: Pointer_buffer
I am trying to run a JCuda example in Debian Linux (32bit). Since there is no binaries available on JCuda website for Linux x86, I\'ve compliled the libraries. Now I\'m trying yo run the DeviceQuery e[详细]
2023-04-11 06:28 分类:问答How to trace and debug external memory allocations in Android?
I am trying to fix a memory issue in an Android application. I am convinced that the memory leak is not happening on the internal heap, as I have thoroughly investigated this possibility using the Me[详细]
2023-04-11 05:38 分类:问答SWIG issue, empty files being generated
I am trying to wrap a C++ class using SWIG to create a Java interface, but when I run SWIG on my files it generates empty files.[详细]
2023-04-11 04:30 分类:问答android-ndk Adding static libraries to the android.mk
I have three static libraries from a framework that I want to use in my proje开发者_StackOverflow中文版ct. These libraries are called libtinySAK_armv7-a.a, libtinyNET_armv7-a.a and libtinyHTTP_armv7-a[详细]
2023-04-11 03:27 分类:问答Creating an android.graphics.Bitmap from C++
I have some NDK based C++ code that needs to build an android bitmap object.I\'m sure there is a way to do this directly from the C++ code but its not the easiest of things to do ;)[详细]
2023-04-11 00:32 分类:问答Creating a JVM from C
How does one start a Java VM from C? Writing the C code seems to be straigtforward -- I\'ve been following the code that appears on p. 84 of Liang\'s \"The Java Native Interface\". It\'s the linking p[详细]
2023-04-10 22:51 分类:问答Get PID from ShellExecute
I am launching a process from ShellExecuteEx, and I really need to get the ProcessID (It\'s part of the requirement of this class).[详细]
2023-04-10 13:43 分类:问答Error: SkImageDecoder::Factory returned null
I am working on a project which is using MPEG2 codec for decoding of a video. My codec is in C. After decoding a video it is returning unsigned char pointer of RGB buffer which is a pointer to an im[详细]
2023-04-10 13:17 分类:问答