For the simplest applications with very little interaction with the rest of the platform,
and search for "native activity". Also read the example code here:
However, for most applications, we recommend you write the application
mostly in Java using SDK, with JNI calling to your native code only where you need it.
Typically this is for performance-sensitive code or to use your existing native code.