Код: Выделить всё
void handle_cmd(android_app *pApp, int32_t cmd) {
aout userData);
pApp->userData = nullptr;
delete pRenderer;
}
break;
case APP_CMD_CONFIG_CHANGED:
// The current device configuration has changed.
aout
Подробнее здесь: [url]https://stackoverflow.com/questions/78460938/how-do-i-register-screen-rotation-event-on-pixel-6a-emulator-using-ndk[/url]