Skip to content

Instantly share code, notes, and snippets.

public class MyNativeActivity extends AppCompatActivity {
static {
System.loadLibrary("ndk_example");
init();
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
int res = test(1, 3);
@Ssioo
Ssioo / CMakeLists.txt
Last active November 28, 2022 08:12
Android NDK settings example
# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html
# Sets the minimum version of CMake required to build the native library.
cmake_minimum_required(VERSION 3.18.1)
# Declares and names the project.
project("ndk_example") # 본 프로젝트 이름
🌞 Morning 122 commits ███▋░░░░░░░░░░░░░░░░░ 17.3%
🌆 Daytime 275 commits ████████▏░░░░░░░░░░░░ 39.0%
🌃 Evening 156 commits ████▋░░░░░░░░░░░░░░░░ 22.1%
🌙 Night 152 commits ████▌░░░░░░░░░░░░░░░░ 21.6%