Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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();
    }
}