Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.app.Activity;

import android.content.res.Configuration;

public class Main {
    public static boolean isXLargeDevice(Activity ctx) {
        int lt = (ctx.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK);
        return lt == Configuration.SCREENLAYOUT_SIZE_XLARGE;
    }
}