Here you can find the source of setFullScreen(Activity activity)
public static void setFullScreen(Activity activity)
//package com.java2s; import android.app.Activity; import android.view.WindowManager; public class Main { public static void setFullScreen(Activity activity) { activity.getWindow().setFlags(/*w ww . j a v a 2 s .c om*/ WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); } }