Andreas Falkenhahn
2017-09-20 14:55:01 UTC
I've recently updated my Nexus 5X to Android O and it seems that
AConfiguration_getOrientation() no longer returns the new device
orientation after receiving APP_CMD_CONFIG_CHANGED. I'm doing
something like the following:
case APP_CMD_CONFIG_CHANGED:
__android_log_print(ANDROID_LOG_INFO, "LogTag", "New orientation: %d", AConfiguration_getOrientation(app->config));
However, this never prints the new orientation but always the
orientation that was current when my app was started, i.e.
if the app was started in portrait mode, it will always
return ACONFIGURATION_ORIENTATION_PORT. If the app was started
in landscape mode, it will always return ACONFIGURATION_ORIENTATION_LAND.
On all previous Android versions it works correctly. Only on
Android O it doesn't work any more. What could be the reason
for this?
--
Best regards,
Andreas Falkenhahn mailto:***@falkenhahn.com
AConfiguration_getOrientation() no longer returns the new device
orientation after receiving APP_CMD_CONFIG_CHANGED. I'm doing
something like the following:
case APP_CMD_CONFIG_CHANGED:
__android_log_print(ANDROID_LOG_INFO, "LogTag", "New orientation: %d", AConfiguration_getOrientation(app->config));
However, this never prints the new orientation but always the
orientation that was current when my app was started, i.e.
if the app was started in portrait mode, it will always
return ACONFIGURATION_ORIENTATION_PORT. If the app was started
in landscape mode, it will always return ACONFIGURATION_ORIENTATION_LAND.
On all previous Android versions it works correctly. Only on
Android O it doesn't work any more. What could be the reason
for this?
--
Best regards,
Andreas Falkenhahn mailto:***@falkenhahn.com
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/10710607250.20170920165501%40falkenhahn.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/10710607250.20170920165501%40falkenhahn.com.
For more options, visit https://groups.google.com/d/optout.