simple sample codes for jni