Issue with a LG G3

Hi guys,

I am now very close to getting my project released and tried testing on a LG G3 and get the nav bar showing so used the code : -

fl.SystemUiVisibility = (StatusBarVisibility)Android.Views.SystemUiFlags.HideNavigation;   
This hides it but as soon as anything changes on screen I get a lot of flashing and corrupted graphics any suggestions great fully received. Below is the activity code…

base.OnCreate (bundle);
            // Create our OpenGL view, and display it
            var g = new BounceITGame ();
            FrameLayout fl = new FrameLayout(this);
           fl.SetFitsSystemWindows(false);
           //SystemUiFlagHideNavigation 
            LinearLayout ll = new LinearLayout (this);
            ll.Orientation = Orientation.Horizontal;
            ll.SetGravity(GravityFlags.Top);
            //fl.AddView(g.Window);
            fl.AddView ((View)g.Services.GetService (typeof(View)));
            adView = AdWrapper.ConstructStandardBanner(this, AdSize.SmartBanner, “ca-app- pub-1223188343191718/7605004788”);
            var listener = new adlistener();
            adView.AdListener = listener;
            adView.CustomBuild();
            //Android.Gms.Ads.AdRequest
            var requestBuilder = new AdRequest.Builder ();
            adView.SystemUiVisibility = (StatusBarVisibility)Android.Views.SystemUiFlags.HideNavigation;   
            ll.SystemUiVisibility = (StatusBarVisibility)Android.Views.SystemUiFlags.HideNavigation;   
            fl.SystemUiVisibility = (StatusBarVisibility)Android.Views.SystemUiFlags.HideNavigation;   
            ll.SetFitsSystemWindows(false);
            adView.SetFitsSystemWindows(false);
            ll.AddView(adView);
            fl.AddView(ll);
            fl.SetFitsSystemWindows(false);
            adView.LoadAd (requestBuilder.Build());
            g.ScreenManager.CurrentAdView = adView;
            ////SetContentView ((View)g.Services.GetService (typeof (View)));
            //SetContentView (g.Window);
            SetContentView (fl);
            g.Run ();

I would have thought you would set an attribute on your activity to do this. What does your activity look like?

Thanks Dave,

Here is the activity

[Activity (Label = “Kerboing”,

MainLauncher = true,

Icon = “@drawable/icon”,

Theme = “@style/Theme.Splash”,

AlwaysRetainTaskState = true,

LaunchMode = Android.Content.PM.LaunchMode.SingleInstance,

ScreenOrientation = Android.Content.PM.ScreenOrientation.Landscape,

ConfigurationChanges = Android.Content.PM.ConfigChanges.Orientation |

Android.Content.PM.ConfigChanges.KeyboardHidden | Android.Content.PM.ConfigChanges.UiMode |

Android.Content.PM.ConfigChanges.Keyboard)]

I thought it should but couldnt findone is there anywhere that lists all the options>>

Hi Dave,

Just a quick update for you. I have tried the platform sample and it has the same issue. After more investigation on this its a “Feature” in android KitKat if the screen res is above HD (the g3 has a quad hd screen) It assumes its a tablet and forces the nav bar to display. There is a way in code which I have found on google which is complicated and I am working on it at the moment and will post a copy when I have it working.