When my application’s orientation change every time onCreate() method call.
It makes me difficult to handle GUI in Activity.
can I avoid onCreate() method one Activity has been created and started?
I don’t want to make screen as static as portrait or landscape
is there any way to avoid onCreate() method?
Thank You.
This may get mixed responses, but the best I’ve been able to find is by adding
android:configChanges="orientation|keyboardHidden"to your activity in theAndroidManifest.xml.There are other answers.
Note: If you mean you never want it called, then no, it has to be called.