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.view.ViewConfiguration;

public class Main {
    public static boolean GTE_ICS;
    public static boolean PRE_HC;

    public static boolean hasHardwareMenuKey(Context getContext) {
        boolean flag = false;
        if (PRE_HC)
            flag = true;
        else if (GTE_ICS) {
            flag = ViewConfiguration.get(getContext).hasPermanentMenuKey();
        } else
            flag = false;
        return flag;
    }
}