优化:项目结构、命名

This commit is contained in:
2025-08-31 00:31:43 +08:00
parent 43f369d94b
commit d2b9f71de0
6 changed files with 42 additions and 36 deletions

12
code/mynative.cpp Normal file
View File

@ -0,0 +1,12 @@
#include "com_myjni_api_NativeCommand.h"
#include <iostream>
#include <stdio.h>
#include <android/log.h>
#define LOG_TAG "MyClientCmd"
JNIEXPORT void JNICALL Java_com_myjni_api_NativeCommand_testHello(JNIEnv *, jobject)
{
printf("this is C++ print");
__android_log_print(ANDROID_LOG_INFO, LOG_TAG, "hello, this is C++ print");
}