La syntaxe pour la conversion de jstring et en ajoutant

JNIEXPORT int JNICALL Java_com_ndkfoo_test_GL2JNILib_step2(JNIEnv * env, jobject obj,  jstring filePath)
{
    const jbyte *str;
    str = (*env)->GetStringUTFChars(env, filePath, NULL);
    char* fullPath=str.append("FileName.txt"); //error
    char* fullPath2=str+"fileName.txt"          //error
}

Quelqu'un pourrait-il indiquer la bonne syntaxe pour créer de définir fullPathName? Je pense passer jstring est correct, mais je ne sais pas comment les convertir pour tirer nom de chemin d'accès pour fopen().

OriginalL'auteur Androider | 2011-11-30