Home > Mobile >  Android studio 3.5 pure C write what needs to be done to modify
Android studio 3.5 pure C write what needs to be done to modify

Time:11-02

#include
#include

Extern "C" JNIEXPORT jstring JNICALL
Java_com_example_cs_MainActivity_stringFromJNI (
JNIEnv * env,
Jobject/* this */) {
STD: : string hello="hello from c + +";
Return env - & gt; NewStringUTF (hello. C_str ());
}

Now in this way can I how to modify the env (*) - & gt; NewStringUTF (hello. C_str ());
Now just learning to use the NDK development android hope have senior guidance
  • Related