Java tutorial
//package com.java2s; //License from project: Creative Commons License import android.content.Context; public class Main { public static boolean hasNavBar(Context ctx) { int id = ctx.getResources().getIdentifier("config_showNavigationBar", "bool", "android"); return id > 0 && ctx.getResources().getBoolean(id); } }