Java tutorial
//package com.java2s; import android.app.Activity; import android.view.Window; import android.view.WindowManager; public class Main { public static void setTranslucentStatus(Activity activity, boolean on) { Window win = activity.getWindow(); WindowManager.LayoutParams winParams = win.getAttributes(); win.setAttributes(winParams); } }