Unexpected resume of “package name” while already resumed in ''package name" Error in Android

前端 未结 3 2077
Happy的楠姐
Happy的楠姐 2021-02-04 00:58

If changing the orientation of my phone or the emulator I get the following output in LogCat:

04-09 11:55:26.290: INFO/WindowManager(52): Setting rotation to 1,          


        
3条回答
  •  渐次进展
    2021-02-04 01:38

    I stumbled here first and after I read the link provided by leventix in his comment I can't help but think that both of the answers are actually wrong. Then I found the earlier question 3851363 which is about the same issue. The message is benign.

    Correct me if I'm wrong, but I understood that the config option android:configChanges="orientation" should only be used when you want to handle the config changes yourself and not go through the typical onDestroy/onCreate cycle.

    The android-8 seems to spawn the error in question needlessly in normal circumstances when the orientation changes.

提交回复
热议问题