I've native app, which is configured to not destroy activity on device orientation change.
<activity android:name="android.app.NativeActivity"
...
android:configChanges="orientation|screenSize"
...
>
When the devices orientation changes only following Native life-cycle command is triggered.
/**
* Command from main thread: the current device configuration has changed.
*/
APP_CMD_CONFIG_CHANGED
In the command handler I can see that the window size has been changed with ANativeWindow_getHeight
function.
(I know that ANativeWindow_getHeight
function is not the best idea to use in config change handler to get the window size, I just only need to check if the window has been resized.)
If the native windows is resized I suppose following native command should be triggered ?
/**
* Command from main thread: the current ANativeWindow has been resized.
* Please redraw with its new size.
*/
APP_CMD_WINDOW_RESIZED
Why it has been blocked ?