I made a fullscreen activity (with the hidden navigation bar) using the following code:
window.decorView.systemUiVisibility = View.SYSTE