Java tutorial
//package com.java2s; import android.app.Activity; import android.view.Window; import android.view.WindowManager; public class Main { public static void setFullScreen(Activity activity) { Window window = activity.getWindow(); if (window != null) { window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); } } }