Java tutorial
//package com.java2s; import android.content.Context; import android.view.ViewConfiguration; public class Main { private static boolean hasNavigationBar(Context context) { return !ViewConfiguration.get(context).hasPermanentMenuKey(); } }