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
 

DonManfred

Expert
Licensed User
Longtime User
So, there is a code that don't recreate the activity when the orientation is changed?
Not that i know of. I guess this is how Android works.

I may be wrong.
 
Upvote 0

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?
 
Upvote 0

AnandGupta

Expert
Licensed User
Longtime User
I use below

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

i.e. #SupportedOrientations: portrait

Regards,

Anand
 
Upvote 0
Top