You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Duy Tran Le edited this page Jun 7, 2018
·
5 revisions
Native Activity
Sample: native-activity
The native-activity sample resides under the NDK installation root, in samples/native-activity. It is a very simple example of a purely native application, with no Java source code. In the absence of any Java source, the Java compiler still creates an executable stub for the virtual machine to run. The stub serves as a wrapper for the actual, native program, which is located in the .so file.
The app itself simply renders a color onto the entire screen, and then changes the color partly in response to movement that it detects.