// This is used only when dictated by the java activity. // It is possible on later versions of android (v >= 4.2) to use the choreographer void AApplication::mainLoop(bool resurrected) { if (resurrected) { JniHelper jni; jni.UpdateActivityObject(); GLHelper::SwapBackToBackgroundSurface(); uAutoReleasePool pool; ::g::Uno::Platform2::Application::ResetContextState(); } else { GLHelper::InitGL(); } }
// This is used only when dictated by the java activity. // It is possible on later versions of android (v >= 4.2) to use the choreographer void AApplication::mainLoop(bool resurrected) { if (resurrected) { JniHelper jni; jni.UpdateActivityObject(); GLHelper::SwapBackToBackgroundSurface(); uAutoReleasePool pool; ::g::Uno::Platform2::Application::ResetContextState(); } else { GLHelper::InitGL(); // register java native extern callbacks ::g::Uno::Compiler::ExportTargetInterop::Foreign::Android::ExternBlockHost::RegisterFunctions(); } }