Lucas Eduardo Active Member Licensed User Aug 29, 2019 #1 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
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
DonManfred Expert Licensed User Longtime User Aug 29, 2019 #2 Lucas Eduardo said: So, there is a code that don't recreate the activity when the orientation is changed? Click to expand... Not that i know of. I guess this is how Android works. I may be wrong. Upvote 0
Lucas Eduardo said: So, there is a code that don't recreate the activity when the orientation is changed? Click to expand... Not that i know of. I guess this is how Android works. I may be wrong.
Lucas Eduardo Active Member Licensed User Aug 29, 2019 #3 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
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?
DonManfred Expert Licensed User Longtime User Aug 29, 2019 #4 You can set a activity to run only in a specific orientation. This may limit the recreations a bit... Code: Copy SetActivityAttribute(<ActivityName>, android:screenOrientation, "landscape" ) Replace <ActivityName> with your activityname Upvote 0
You can set a activity to run only in a specific orientation. This may limit the recreations a bit... Code: Copy SetActivityAttribute(<ActivityName>, android:screenOrientation, "landscape" ) Replace <ActivityName> with your activityname
AnandGupta Expert Licensed User Longtime User Aug 29, 2019 #5 I use below Code: Copy #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
I use below Code: Copy #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