How to tell whether an android device has hard keys
<p>How can I tell whether an android device has physical keys or the software navigation bar?  I need to change the layout dependant on whether the software navigation is drawn. </p>

<p>For example the HTC Desire C has hardware keys:
<img src="http://i.stack.imgur.com/DpFOU.png" alt="enter image description here"></p>

<p>I should clarify - Im looking at the navigation bar, not the keyboard.  Home, back etc. I've tried:</p>

<pre><code>        getResources().getConfiguration().keyboard);
        getResources().getConfiguration().navigation);
        getResources().getConfiguration().navigationHidden);
</code></pre>

<p>return the same values on both devices. </p>
