1 #include <jni.h> 2 #include <string> 3 4 extern "C" JNIEXPORT jstring JNICALL Java_android_incrementalinstall_incrementaltestapp_nativelib_CompressedNativeLib_getString(JNIEnv * env,jobject)5Java_android_incrementalinstall_incrementaltestapp_nativelib_CompressedNativeLib_getString( 6 JNIEnv *env, jobject /* this */) { 7 std::string str = "String from compressed native lib"; 8 return env->NewStringUTF(str.c_str()); 9 } 10