Log in or register to post comments

Syntax error in customize sample code

August 12, 2013 - 11:43am #1

I copied JNI folder into my own app. I changed following line with my package name:

 

JNIEXPORT void JNICALL
Java_com_example_sample_CloudReco_setActivityPortraitMode(JNIEnv *, jobject, jboolean isPortrait)
{
    isActivityInPortraitMode = isPortrait;
}
but im getting syntax error. why?
 

Syntax error in customize sample code

August 13, 2013 - 11:59pm #4

Are you using Eclipse ? red and yellow marks can be misleading for C++ code, sometimes;

simply build your native code with ndk-build from the console, if it compiles, it will be fine.

 

Syntax error in customize sample code

August 13, 2013 - 9:36pm #3

It's now displaying red color mark. It indicating yellow color question mark. When click this it shows syntax error. This is error or warning

Syntax error in customize sample code

August 12, 2013 - 11:55am #2

What is the exact error ?

 

Log in or register to post comments