Hi
@walterf25 please find attached a sample project demonstrating how I set and use ImmersiveMode. It's pieced together from posts I've found here on the forum, I'm not sure if the way I save the calling Activity is correct? Basically I wanted to store the code to set ImmersiveMode in a separate Code Module then as I choose to add new Activities I can just call the function and if I ever make changes there's only one place I need to make those changes. I like to try and keep things neat and reduce duplicate code as much as possible
The reason for loading my layout and setting ImmersiveMode in Activity_Resume instead of Activity_Create is because when using the back button to move to an Activity that has already been loaded, the Activity_Create sub is not triggered and so you end up with the NavigationBar showing again. Using Activity_Resume prevents this from happening.
You also don't need to use all the constant declarations in my "Set_ImmersiveMode" subroutine. I've only done this for clarity in case I need to add more flags in the future. These values can all be combined into one value as normally used elsewhere here on the forum.
Since creating this sample I've noticed that the NavigationBar does momentarily shows when first loading the Activity. I've not noticed this in my own App because I typically only use one Activity with tabbed views on it after the initial Splash and login screen. Therefore I don't see this effect as I'm not changing Activities. Hopefully it's minor enough not to cause you a problem.
If you need further help I can try but this is about the extent of my knowledge on the subject