python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Create a FileDescriptor object on Android
I want to convert the filedescriptor (int) obtained from native to filedescriptor (Java object)
//native
int fd = open(......);
Why doesn't example 1 work? Maybe in theory?
//eg 1:
FileDescriptor m...

Qiuyan Su
Votes: 0
Answers: 0
How to use ndk file_descriptor_jni.h?
I want to create a Java FileDescriptor object on C!
There are too few related instructions.
It has been tried for a long time and cannot be called successfully.
AFileDescriptor_create(JNIEnv *env)
AF...

Qiuyan Su
Votes: 0
Answers: 0
JNIEnv::NewObject() throwing java.lang.InstantiantionException
I am attempting to call JNIEnv::NewObject() in some JNI code when a C function returns a non-zero error code.
The order of events looks like:
Call C function.
If return code is non-zero, call a helpe...

tristan957
Votes: 0
Answers: 1
Why is my C code not keeping the state of static variables?
So, all information I've found online points to JNI keeping state of global variables defined on C.
However, In my particular case, this isn't working.
C Code:
//*snip* (just the includes)
static int...
Silverlord
Votes: 0
Answers: 0