List of usage examples for android.content.res Configuration HARDKEYBOARDHIDDEN_UNDEFINED
int HARDKEYBOARDHIDDEN_UNDEFINED
To view the source code for android.content.res Configuration HARDKEYBOARDHIDDEN_UNDEFINED.
Click Source Link
From source file:es.javocsoft.android.lib.toolbox.ToolBox.java
/** * Return TRUE if there is a hardware keyboard and is being made hidden. * // w ww . j a v a2 s . c om * @param context * @return */ public static boolean device_isHardwareKeyboardHidden(Context context) { //You can also get some of the features which are not testable by the PackageManager via the Configuration, e.g. the DPAD. Configuration c = context.getResources().getConfiguration(); if (c.hardKeyboardHidden != Configuration.HARDKEYBOARDHIDDEN_UNDEFINED && c.hardKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_YES) { return true; } else { return false; } }
From source file:es.javocsoft.android.lib.toolbox.ToolBox.java
/** * Return TRUE if there is a hardware keyboard and is being made visible. * //w ww . j a va 2 s .com * @param context * @return */ public static boolean device_isHardwareKeyboardVisible(Context context) { //You can also get some of the features which are not testable by the PackageManager via the Configuration, e.g. the DPAD. Configuration c = context.getResources().getConfiguration(); if (c.hardKeyboardHidden != Configuration.HARDKEYBOARDHIDDEN_UNDEFINED && c.hardKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_NO) { return true; } else { return false; } }