Java tutorial
//package com.java2s; import android.app.Activity; import android.os.Build; import android.view.WindowManager; public class Main { public static void setTranslucent(Activity activity) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); } } }