Android Question Don't re-create activity when change the orientation

Lucas Eduardo

Active Member
Licensed User
Hello, i think i did this sometime ago, but i don't remenber. So, there is a code that don't recreate the activity when the orientation is changed?
I need to do just one activity, not more than this, the solution of create another activty doesn't work to me.

Thanks :D

Lucas Eduardo

Active Member
Licensed User
Got it, and do you know another way to keep my panels, CLVs, all views in the same place when i return from changed orientation?


Well-Known Member
Licensed User
I use below

#Region  Project Attributes
    #ApplicationLabel: B4A Example
    #VersionCode: 1
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: portrait
    #CanInstallToExternalStorage: False
#End Region
i.e. #SupportedOrientations: portrait