Home > OS >  Why is the Android onCreate() method not called when the AVD is rotated?
Why is the Android onCreate() method not called when the AVD is rotated?

Time:06-11

My AndroidManifest.xml does not include anything that would cause this (that I know of).

I.e. it does not include:

android:configChanges="orientation"

Android Version: Chipmunk 2021.2.1 Patch 1

CodePudding user response:

It's hard to help you without seeing your code. But check that is this line available in your code.

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

CodePudding user response:

Maybe be you don't activate rotation in the top panel of your simulator.

  • Related