Java tutorial
//package com.java2s; import android.content.Context; import android.os.Build; import android.view.ViewConfiguration; public class Main { public static boolean isThereASettingsButton(Context context) { return Build.VERSION.SDK_INT <= Build.VERSION_CODES.HONEYCOMB_MR2 || (Build.VERSION.SDK_INT > Build.VERSION_CODES.HONEYCOMB_MR2) && ViewConfiguration.get(context).hasPermanentMenuKey(); } }