error in ndk code

4 views
Skip to first unread message

sujata

unread,
Sep 13, 2011, 3:04:01 AM9/13/11
to android-ndk
hi guys........ i m facing some prblm in running the ndk code ...nd th
code is

#include <jni.h>
#include <string.h>
#include <android log.h="">
#define DEBUG_TAG "NDK_AndroidNDK1SampleActivity"
void
Java_com_mamlambo_sample_ndk1_AndroidNDK1SampleActivity_helloLog(JNIEnv
* env, jobject this, jstring logThis) {

jboolean isCopy; const char * szLogThis = (*env)-
>GetStringUTFChars(env, logThis, &isCopy);
__android_log_print(ANDROID_LOG_DEBUG, DEBUG_TAG, "NDK:LC: [%s]",
szLogThis); (*env)->ReleaseStringUTFChars(env, logThis,
szLogThis); } </android></string.h></jni.h>

the prblm is ....during runing dis code it asks the identification of
(env).this is the main prblm.....plzzz sir help me..........regards
with sujata......thanku
Reply all
Reply to author
Forward
0 new messages