List of usage examples for android.content.pm ActivityInfo CONFIG_KEYBOARD
int CONFIG_KEYBOARD
To view the source code for android.content.pm ActivityInfo CONFIG_KEYBOARD.
Click Source Link
From source file:com.pranavpandey.smallapp.SmallApp.java
@Override protected boolean onSmallAppConfigurationChanged(Configuration newConfig) { int diff = newConfig.diff(mConfig); mConfig = new Configuration(getResources().getConfiguration()); if ((diff & ActivityInfo.CONFIG_ORIENTATION | ActivityInfo.CONFIG_FONT_SCALE | ActivityInfo.CONFIG_SCREEN_SIZE | ActivityInfo.CONFIG_KEYBOARD) != 0) { return true; }/*from ww w . j a v a 2 s . c o m*/ return super.onSmallAppConfigurationChanged(newConfig); }