Dynamically Change Screen Orientation on Android

I think I’m not doing my class well as you indicated.
what I did was make a new class where I define a function ToggleOrientation (). My cpp is composed as follows.

#include "funcLib.h"
#include "Android / AndroidJNI.h"
#include "Android / AndroidApplication.h"
.......
void AfuncLib :: ToggleOrientation ()
{
#if PLATFORM_ANDROID || PLATFORM_IOS
        JNIEnv * JE = FAndroidApplication :: GetJavaEnv ();
jmethodID SetOrientationID = FJavaWrapper :: FindMethod (JE, FJavaWrapper :: GameActivityClassID, "setRequestedOrientation", "(I) V", false);
FJavaWrapper :: CallVoidMethod (JE, FJavaWrapper :: GameActivityThis, SetOrientationID, 0);
#else
#endif
}

Where it says ‘Android / AndroidJNI.h’: No such file or directory

Again, thanks for the help. Sorry for the inconvenience