Android Tablet Check isTablet(Configuration configuration)

Here you can find the source of isTablet(Configuration configuration)

Description

is Tablet

License

Open Source License

Declaration

public static boolean isTablet(Configuration configuration) 

Method Source Code

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

import android.content.res.Configuration;

public class Main {
    public static boolean isTablet(Configuration configuration) {
        int cur = configuration.screenLayout
                & Configuration.SCREENLAYOUT_SIZE_MASK;
        if (cur == Configuration.SCREENLAYOUT_SIZE_UNDEFINED)
            return false;
        return cur >= Configuration.SCREENLAYOUT_SIZE_LARGE;
    }//from   w ww  .ja  v a  2  s .  c  o m
}

Related

  1. isTabletDevice(Display d, Activity context)
  2. isTablet(Context context)
  3. isTabletDevice(Context activityContext)