Java tutorial
//package com.java2s; import android.app.Activity; import android.view.WindowManager; public class Main { public static void hideNotificationBar(Activity aContext) { WindowManager.LayoutParams attrs = aContext.getWindow().getAttributes(); attrs.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN; aContext.getWindow().setAttributes(attrs); } }