cocos2D-X call JNIHelper

#ifndef _WIN32
    JNIEnv *j = JniHelper::getEnv();
    if (j == nullptr || j == NULL)
    {test += "JNIEnv == NULL";}
    else
    {
        jstring js = j->NewStringUTF(std::string(" new string utf ").c_str());
        std::string j2s = JniHelper::jstring2string(js);
        test += j2s;
    }
#endif
posted @ 2019-12-13 23:18  YZFHKMS-X  阅读(116)  评论(0编辑  收藏  举报