12 lines
338 B
C++
12 lines
338 B
C++
#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");
|
|
} |