I have not tried your code.
Are you building your naitve code for arm and armv7a?
There was a bug in ndk7b which caused crashes on armv7a devices without the NEON instruction set (like Tegra 2 devices)
Maybe it helps if you update to ndk7c.
If you are not sure, simply look at the libs directory of your project if it contains both the arm and armv7 folder you are building for armv7a.
If that doesn’t help, is there any output before the crash? like a jni warning or something like that?
Can you reproduce the error when building for Linux/Windows/iOS.
In that case it may be helpful to attach a debugger or do some valgrind checking (Linux only)