优化:项目结构、命名
This commit is contained in:
12
code/mynative.cpp
Normal file
12
code/mynative.cpp
Normal 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");
|
||||
}
|
||||
Reference in New Issue
Block a user