JNI. How to get jstring from jobject and convert it to char*

后端 未结 1 1888
半阙折子戏
半阙折子戏 2021-01-18 01:08

This is what I have so far: I pass an object which has 2 fields: String and Integer, as a parameter and I want to send information to process it in C part, which is not im

1条回答
  •  太阳男子
    2021-01-18 01:57

    jstring dateString = (jstring)(*env)->GetObjectField(env, stat, idDate);

    … and after that everything is OK.

    0 讨论(0)
提交回复
热议问题