How to hide the soft navigation bar(virtual buttons) of android device for whole application?
<p>I want to hide the soft navigational bar i.e. virtual buttons of android device for whole app. I have used below code snippet</p>

<pre><code>getWindow().getDecorView().setSystemUiVisibility( View.SYSTEM_UI_FLAG_IMMERSIVE
            | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
</code></pre>

<p>to hide it but when i slide gridview it will become visible .</p>