Page 1 of 1

Simple NDK example

Posted: Wed Mar 14, 2018 4:00 am
by redpearl
The current NDK example, SampleBrowserNDK, is huge and used many other .a libraries. Does anyone have a simple, hello-world kind, NDK example for beginners to study?

Re: Simple NDK example

Posted: Thu Mar 15, 2018 1:50 pm
by paroj
the preferred way is to use the the Java bindings: ...

but if you want to use the lower-level NDK API you can look at the older example here: ... ityJNI.cpp

Re: Simple NDK example

Posted: Fri Apr 06, 2018 12:43 am
by redpearl
My application already have JNI with native code, and I will use Ogre from the native code (instead of from Java code). So the second way looks better for my case.

Is there any instructions for the second way? Particularly, can I build an file (similar to So I do not need to include all Ogre source files (.cpp files). The instruction here only talks about first way (i.e. calling from Java).