Skip to main content

Posts

Showing posts with the label popen

popen on android NDK

Is popen not supported by android NDK? I read this page and wondering if this is true The same is possible with POSIX popen() but it is not currently supported by bionic, so you can't use that in Android JNI. Instead you can probably use the system() and pipe the output to a file and then read that file afterwards. Looks like the Java approach will be cleaner if you will be doing the rendering in Java. But I also read someone suggesting to use popen. I also tried it myself but sometime my app crashes and I dont know why. Is popen safe to use in android ndk?