List of usage examples for android.app Activity getWindow
public Window getWindow()
From source file:Main.java
public static void noScreenshots(Activity activity) { activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE); }
From source file:Main.java
public static void hiddenKeyboard(Activity activity) { activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); }
From source file:Main.java
public static void showSoftInput(Activity activity) { activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE); }
From source file:Main.java
public static void keepScreenOn(Activity activity) { activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); }
From source file:Main.java
public static void hideSoftButtons(Activity activity) { activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); }
From source file:Main.java
public static void setFullScreen(Activity activity) { activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); }
From source file:Main.java
public static void setFullScreen(Activity activity) { activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); }
From source file:Main.java
public static void setBarTranslucent(Activity activity) { activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION); activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); }
From source file:Main.java
/** * disabling automatic keyboard popup/show * @param activity//from www . ja va 2 s . co m */ public static void killAutomaticKeyboardShow(Activity activity) { activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN); }
From source file:Main.java
public static int getWindowFeatures(Activity activity) { if (activity.getWindow() != null) ;/*from w w w .j av a2s . com*/ return 0; }