Example usage for android.content.res Configuration SCREENLAYOUT_LONG_MASK

List of usage examples for android.content.res Configuration SCREENLAYOUT_LONG_MASK

Introduction

In this page you can find the example usage for android.content.res Configuration SCREENLAYOUT_LONG_MASK.

Prototype

int SCREENLAYOUT_LONG_MASK

To view the source code for android.content.res Configuration SCREENLAYOUT_LONG_MASK.

Click Source Link

Document

Constant for #screenLayout : bits that encode the aspect ratio.

Usage

From source file:com.adjust.sdk.Util.java

private static String getScreenFormat(final int screenLayout) {
    final int screenFormat = screenLayout & Configuration.SCREENLAYOUT_LONG_MASK;

    switch (screenFormat) {
    case Configuration.SCREENLAYOUT_LONG_YES:
        return LONG;
    case Configuration.SCREENLAYOUT_LONG_NO:
        return NORMAL;
    default://w  w  w. ja  v a 2  s.co  m
        return UNKNOWN;
    }
}