Goodmorning, i'm trying to hide the navigation bar on my app android. i have device admin permission,i have created my kiosk app but i need to hide the navigation bar. in this moment i have no home button but i have back button.if i press on it the tablet say u can't exit app for device admin. to block the bar i use this
startlocktask()
i have tried devicePolicyManager.SetStatusBarDisabled() but this hide status not home
i have this code for hide navigation bar
View decorView = Window.DecorView;
var uiOptions = (int)decorView.SystemUiVisibility;
var newUiOptions = (int)uiOptions;
newUiOptions |= (int)SystemUiFlags.LowProfile;
newUiOptions |= (int)SystemUiFlags.Fullscreen;
newUiOptions |= (int)SystemUiFlags.HideNavigation;
newUiOptions |= (int)SystemUiFlags.Immersive;
newUiOptions |= (int)SystemUiFlags.ImmersiveSticky;
decorView.SystemUiVisibility = (StatusBarVisibility)newUiOptions;
but when someone drag up the bottom bar this appear with only back button.i don't want that the user can see the navigation bar. can someone help me?
thanks regards