Java tutorial
//package com.java2s; import android.annotation.TargetApi; import android.os.Build; import android.view.Window; public class Main { @TargetApi(14) public static void setUiOptions(Window window, int uiOptions) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { window.setUiOptions(uiOptions); } } }