How can I find out if an Android device has physical keys or a software navigation bar? I need to change the layout depending on whether the navigation system is drawn.
For example, HTC Desire C has hardware keys: 
I have to clarify - I'm looking at the navigation bar, not the keyboard. Home, back, etc. I tried:
getResources().getConfiguration().keyboard); getResources().getConfiguration().navigation); getResources().getConfiguration().navigationHidden);
return the same values ββon both devices.
android
serenskye
source share