Java tutorial
//package com.java2s; //License from project: Open Source License import android.app.Activity; import android.view.WindowManager; public class Main { public static boolean isTranslucencyAllowed(Activity activity) { WindowManager.LayoutParams lp = activity.getWindow().getAttributes(); int i = lp.flags; boolean fullScreen = (i & WindowManager.LayoutParams.FLAG_FULLSCREEN) != 0; boolean forceNotFullScreen = (i & WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN) != 0; boolean translucentStatus = (i & WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS) != 0; return (!fullScreen || forceNotFullScreen && !translucentStatus); } }