Saving C/C++ code in the JNI folder

Is it alright if I keep my C/C++ files in the JNI folder instead of keeping it in the Classes folder, or is it still preferably placed in the Classes folder? My project is purely android based.

Both ok. I used to locate them in MyGame/Classes folder. and write MyGame/android/jni/helloworld/Android.mk to find them. Just like

LOCAL_SRC_FILES := main.cpp \
../../../AppDelegate.cpp \
../../../HelloWorldScene.cpp \
../../../MyNewClass.cpp