
LOCAL_STATIC_LIBRARIES := android_native_app_glue The next line provides the name of the static library, android_native_app_glue, which theĪpplication uses to manage NativeActivity lifecycle events and touch input. LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv1_CM The library resides in the following directory, NDK root:.For example, the actual file name for the The actual file name starts with lib, and ends with the.GLESv1_CM corresponds to OpenGL ES, the version of OpenGL for Android.EGL corresponds to the platform-specific portion of the graphics API.
NATIVE APP WRAPPER ANDROID
The APIs that Android and the NDK support, see Android NDK Native

AndroidManifest.xmlĪn app with only native code must not specify an Android API level lower than 9, which introduced Then changes the color partly in response to movement that it detects.

The app itself simply renders a color onto the entire screen, and The stub serves as a wrapper for the actual, native program, which is located in the. Java compiler still creates an executable stub for the virtual machine to run. It is a very simple example of a purely nativeĪpplication, with no Java source code.

The native-activity sample resides under the
