Java tutorial
//package com.java2s; import android.app.Activity; import android.view.View; public class Main { public static void hideStatusBar(Activity activity) { View decorView = activity.getWindow().getDecorView(); int uiVisibility = decorView.getSystemUiVisibility(); decorView.setSystemUiVisibility(uiVisibility | View.SYSTEM_UI_FLAG_FULLSCREEN); } }