Hiding the navigation bar in pure android native
<p>I've seen articles and articles on hiding the navigation bar for android application through java. However, what I would like to know, is <strong>how do I remove the navigation bar through a pure android c++ native-activity application for a full-screen application(game)(NO JAVA AT ALL!)</strong>. Full-screen from the android manifest works at hiding the top bar, but the navigation bar stays visible.</p>

<p>This is the <a href="https://i.stack.imgur.com/P0OI9.png" rel="noreferrer">Navigation Bar</a> that I wish to remove.</p>

<p>I've searched through books with no luck, there's is no actual documentation for native-activity and google searches result in nothing. There is only the comments inside some of the header files which are tiny comments that don't even help. It seems the topic regarding pure c++ android applications is a black spot yet a lot of games that are coming out on the market are written in c++.</p>

<p>I've also tried setting:</p>

<pre><code>AConfiguration_setNavHidden(m_app-&gt;config, ACONFIGURATION_NAVHIDDEN_YES);
</code></pre>

<p>But it seems to do nothing, in fact all the <strong>AConfiguratin_setXXX</strong> seem to do nothing. Perhaps I'm calling it in the wrong place? I've been calling it during <strong>APP_CMD_INIT_WINDOW</strong> after creating the window. Where should I be calling this function?</p>