Java tutorial
//package com.java2s; import android.app.Activity; import android.os.Build; public class Main { public static void removeActivityBackgroundCompat(Activity activity) { if (activity == null) { throw new IllegalArgumentException("Activity is null"); } if (Build.VERSION.SDK_INT >= 16) { activity.getWindow().getDecorView().setBackground(null); } else { activity.getWindow().getDecorView().setBackgroundDrawable(null); } } }