3 ms·
> I respect this attitude but it's wrong to say Java isn't being used or executed. The truth is Java code is being called from C. He isn't wrong, because he di
by 411111111111111 6y ago
> I respect this attitude but it's wrong to say Java isn't being used or executed. The truth is Java code is being called from C.
He isn't wrong, because he didn't say that.
It's admittedly very close to that, but not quiet.
You just don't have to use Java to ask for permission. If that ultimately still executes Java code... Well, he didn't say.
- matheusmoreira 6y agoThe author wrote: > it shows how to use the JNI to marshall a ton of stuff to/from the Android API without needing to jump back into Java/Kotlin land The C code "jumps back into Java/Kotlin land" when it calls the CallVoidMethod function.
- foota 6y agoI think the point is that the marshalling is done in C, and calls into Java, but the marshalling itself isn't done in Java.