Android Question Layout variant problem

GaNdAlF89

Active Member
Licensed User
Longtime User
I have two variant of layout: landscape and portrait. When the orientation of device changes, the Activity_Resume is executed again. How can I avoid this case? I want that the correct layout is loaded (only graphically) when the orentation changes, but no other event is raised. Thanks.
 
You cannot stop this event from being raised but maybe you can use a Process Global variable to determine if the code is to be executed or not.
 
Upvote 0
Back
Top