B4i Code Snippet [beta] Forcing the app orientation at runtime - Erel    Mar 3, 2024   (7 reactions) Add to main module:
#if OBJC
@end
@interface B4IAppDelegate (orientation)
@end
@implementation B4IAppDelegate (orientation)
- (UIInterfaceOrientationMask)application:(UIApplication *)application
supportedInterfaceOrientationsForWindow:(UIWindow *)window {
return ._morientation;
}
#End If
Public Sub SetSupportedOrientation(Orientation As Int)
mOrientation = Orientation
If App... B4i Question Set Screen orientation at runtime - MrKim    Feb 14, 2023 I need to set the screen orientation when the app opens. I don't need to change it and I don't want it to change once it is set.
But the only things I found for B4i say it can't be done. Or that it is unreliable or undocumented. But those threads are old.
Is there a way to do this in B4i?... B4i Question [SOLVED sort of] How do you change the supported orientations at runtime - JackKirk    Mar 17, 2019 -that-are-only-portait.46170/#post-284875
Erel says:
"You can change the supported orientations at runtime."
I would like to know how to do this.... B4i Question Set xCustomListView orientation at runtime? - Erel (first post)    Dec 22, 2020 You are correct. The field is private in the library.
Use this:
Dim no As NativeObject = CustomLis... Java Question Dialog Change Orientation at Runtime - Erel (first post)    Jun 7, 2020 You are posting in the wrong place.... B4A Tutorial Runtime Permissions (Android 6.0+ Permissions) - Erel    Mar 16, 2022   (34 reactions)   tags: RuntimePermission, runtime permissions, B4A Runtime Permissions, Runtime, SDK, B4A support for runtime permissions. The nice thing about runtime permissions is that the user is not... to approve "dangerous" permissions at runtime. Luckily most permissions are not... deal with all cases anyway. As a general rule, you shouldn't call RuntimePermissions.Check from... button that is inside the Logs tab: A very common mistake is to request a permission at runtime... RuntimePermissions.GetSafeDirDefaultExternal("") instead of File.DirDefaultExternal... B4A Question Orientation setting during runtime - Erel (first post)    Mar 17, 2013 Yes. See Phone.SetScreenOrientation.... B4A Question Orientations Support at runtime? - Erel (first post)    Jan 17, 2012 Yes. See the first result: Basic4android Search: orientation runtime... B4A Question How to freeze the orientation of an Activity - Reflection? - Gary Milne    Mar 23, 2015 I have an app that mostly uses Landscape but has one Portrait activity. I need to be able to set and freeze the orientation on a per activity basis. I've tried Phone.SetScreenOrientation as described here but that does not lock the orientation and it still changes on a device rotation. There is a thread that describes how to do this (how to lock orientation during runtime) and it seems like it would be a fit for Reflection but I don't have a good handle on Reflection semantics... B4A Question Block Orientations [SOLVED] - AHilberink    Feb 2, 2024 Hi, Is it possible to block change of orientation during runtime, but still support Landscape and Portrait? I want to make the orientation during start as fixed. Starting with Landscape, all activities will be Landscape. Starting with Portrait, all activities will be Portrait. Any options for this? Thanks, André... Page: 1   2   3   4   5   6   7   |